diff --git a/ChangeLog.md b/ChangeLog.md index ddab82346..d51cdca65 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,16 @@ +### 6.0.0 + +AdWords: + - Removed the applicationToken parameter from the AdWordsUser.php constructor, as applicationToken is no longer required and ignored. Please see the [CreateAdWordsUserWithoutIniFile.php](https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php) auth example for updated usage. + +DFP: + - Added support for v201505. + - Refactored utility classes so they are now version specific. + - Removed ServiceUtils.php from all versions. Please see the [migration guide](https://github.com/googleads/googleads-php-lib/wiki/Migrating-off-of-DFP-ServiceUtils-functions) for more information. + - Removed ReportUtils.php from v201505 as it is deprecated. Please use ReportDownloader.php instead. + - Updated v201505 examples that deal with date time to ensure timezones are passed in anywhere date times are used. + - Removed deprecated functions from DateTimeUtils.php. + ### 5.9.0 AdWords: diff --git a/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php b/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php index 74b0333f5..1c6058b96 100755 --- a/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php +++ b/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php @@ -61,7 +61,7 @@ function RunExample(AdWordsUser $user) { ); // See AdWordsUser constructor - $user = new AdWordsUser(NULL, DEVELOPER_TOKEN, NULL, USER_AGENT, NULL, NULL, + $user = new AdWordsUser(null, DEVELOPER_TOKEN, USER_AGENT, null, null, $oauth2Info); $user->LogAll(); diff --git a/examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php b/examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php index 1cef20b9a..d58cb8787 100755 --- a/examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php +++ b/examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php @@ -35,8 +35,8 @@ * @return array the user's OAuth 2 credentials */ function GetOAuth2Credential(AdWordsUser $user) { - $redirectUri = NULL; - $offline = TRUE; + $redirectUri = null; + $offline = true; // Get the authorization URL for the OAuth2 token. // No redirect URL is being used since this is an installed application. A web // application would pass in a redirect URL back to the application, @@ -92,7 +92,7 @@ function GetOAuth2Credential(AdWordsUser $user) { ); // See AdWordsUser constructor - $user = new AdWordsUser(NULL, NULL, NULL, NULL, NULL, NULL, $oauth2Info); + $user = new AdWordsUser(null, null, null, null, null, $oauth2Info); $user->LogAll(); diff --git a/examples/AdWords/v201502/Targeting/AddCampaignTargetingCriteria.php b/examples/AdWords/v201502/Targeting/AddCampaignTargetingCriteria.php index 157349571..bff7ba0c6 100755 --- a/examples/AdWords/v201502/Targeting/AddCampaignTargetingCriteria.php +++ b/examples/AdWords/v201502/Targeting/AddCampaignTargetingCriteria.php @@ -102,6 +102,16 @@ function AddCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) { $operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD'); } + // Add a negative campaign criterion. + $negativeKeyword = new Keyword(); + $negativeKeyword->text = 'jupiter cruise'; + $negativeKeyword->matchType = 'BROAD'; + $negativeCriterion = new NegativeCampaignCriterion(); + $negativeCriterion->campaignId = $campaignId; + $negativeCriterion->criterion = $negativeKeyword; + + $operations[] = new CampaignCriterionOperation($negativeCriterion, 'ADD'); + // Make the mutate request. $result = $campaignCriterionService->mutate($operations); diff --git a/examples/Dfp/v201405/CompanyService/UpdateCompaniesExample.php b/examples/Dfp/v201405/CompanyService/UpdateCompaniesExample.php deleted file mode 100755 index ed6353394..000000000 --- a/examples/Dfp/v201405/CompanyService/UpdateCompaniesExample.php +++ /dev/null @@ -1,93 +0,0 @@ -LogDefaults(); - - // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201405'); - - // 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/v201405/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php deleted file mode 100755 index 795038712..000000000 --- a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php +++ /dev/null @@ -1,90 +0,0 @@ -LogDefaults(); - - // Get the ContentMetadataKeyHierarchyService. - $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201405'); - - // Set the ID of the content metadata key hierarchy to delete. - $contentMetadataKeyHierarchyId = - "INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE"; - - // Create a statement to select a single content metadata key hierarchy by ID. - $vars = MapUtils::GetMapEntries(array('id' => - new NumberValue($contentMetadataKeyHierarchyId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); - - // Get the content metadata key hierarchy. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement($filterStatement); - $contentMetadataKeyHierarchy = $page->results[0]; - - printf("Content metadata key hierarchy with ID '%d' will be deleted.\n", - $contentMetadataKeyHierarchy->id); - - // Create and perform the delete action. - $filterStatement = new Statement("WHERE id = :id", $vars); - $deleteAction = new DeleteContentMetadataKeyHierarchies(); - $result = $contentMetadataKeyHierarchyService-> - performContentMetadataKeyHierarchyAction($deleteAction, $filterStatement); - - printf("Number of content metadata key hierarchies deleted: %d.\n", - $result->numChanges); -} 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/v201405/ContentService/GetContentByCategoryExample.php b/examples/Dfp/v201405/ContentService/GetContentByCategoryExample.php deleted file mode 100755 index b212e4683..000000000 --- a/examples/Dfp/v201405/ContentService/GetContentByCategoryExample.php +++ /dev/null @@ -1,113 +0,0 @@ -LogDefaults(); - - // Get the ContentService. - $contentService = $user->GetService('ContentService', 'v201405'); - - // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - // 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/v201405/CreativeService/AssociateCreativeSetToLineItemExample.php b/examples/Dfp/v201405/CreativeService/AssociateCreativeSetToLineItemExample.php deleted file mode 100755 index ca8243059..000000000 --- a/examples/Dfp/v201405/CreativeService/AssociateCreativeSetToLineItemExample.php +++ /dev/null @@ -1,78 +0,0 @@ -LogDefaults(); - - // Get the LineItemCreativeAssociationService. - $licaService = $user->GetService('LineItemCreativeAssociationService', - 'v201405'); - - // 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/v201405/CreativeService/GetCreativesByStatementExample.php b/examples/Dfp/v201405/CreativeService/GetCreativesByStatementExample.php deleted file mode 100755 index 8a99a7136..000000000 --- a/examples/Dfp/v201405/CreativeService/GetCreativesByStatementExample.php +++ /dev/null @@ -1,88 +0,0 @@ -LogDefaults(); - - // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); - - // 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/v201405/CreativeService/UpdateCreativesExample.php b/examples/Dfp/v201405/CreativeService/UpdateCreativesExample.php deleted file mode 100755 index 9a6c6962e..000000000 --- a/examples/Dfp/v201405/CreativeService/UpdateCreativesExample.php +++ /dev/null @@ -1,95 +0,0 @@ -LogDefaults(); - - // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); - - // 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/v201405/CreativeSetService/GetCreativeSetsByStatementExample.php b/examples/Dfp/v201405/CreativeSetService/GetCreativeSetsByStatementExample.php deleted file mode 100755 index ecaad431a..000000000 --- a/examples/Dfp/v201405/CreativeSetService/GetCreativeSetsByStatementExample.php +++ /dev/null @@ -1,90 +0,0 @@ -LogDefaults(); - - // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201405'); - - $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/v201405/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php b/examples/Dfp/v201405/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php deleted file mode 100755 index cbf6a63b6..000000000 --- a/examples/Dfp/v201405/CreativeTemplateService/GetCreativeTemplatesByStatementExample.php +++ /dev/null @@ -1,84 +0,0 @@ -LogDefaults(); - - // Get the CreativeTemplateService. - $creativeTemplateService = - $user->GetService('CreativeTemplateService', 'v201405'); - - // 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/v201405/CreativeWrapperService/DeactivateCreativeWrapperExample.php b/examples/Dfp/v201405/CreativeWrapperService/DeactivateCreativeWrapperExample.php deleted file mode 100755 index 84985f286..000000000 --- a/examples/Dfp/v201405/CreativeWrapperService/DeactivateCreativeWrapperExample.php +++ /dev/null @@ -1,97 +0,0 @@ -LogDefaults(); - - // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201405'); - - $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/v201405/CreativeWrapperService/GetActiveCreativeWrappersExample.php b/examples/Dfp/v201405/CreativeWrapperService/GetActiveCreativeWrappersExample.php deleted file mode 100755 index af5b22318..000000000 --- a/examples/Dfp/v201405/CreativeWrapperService/GetActiveCreativeWrappersExample.php +++ /dev/null @@ -1,81 +0,0 @@ -LogDefaults(); - - // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201405'); - - // 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/v201405/CreativeWrapperService/GetAllCreativeWrappersExample.php b/examples/Dfp/v201405/CreativeWrapperService/GetAllCreativeWrappersExample.php deleted file mode 100755 index 752db9ff1..000000000 --- a/examples/Dfp/v201405/CreativeWrapperService/GetAllCreativeWrappersExample.php +++ /dev/null @@ -1,76 +0,0 @@ -LogDefaults(); - - // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201405'); - - // 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/v201405/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php b/examples/Dfp/v201405/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php deleted file mode 100755 index 4d056e706..000000000 --- a/examples/Dfp/v201405/CustomFieldService/DeactivateAllLineItemCustomFieldsExample.php +++ /dev/null @@ -1,123 +0,0 @@ -LogDefaults(); - - // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201405'); - - // 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/v201405/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201405/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php deleted file mode 100755 index e5a0c884a..000000000 --- a/examples/Dfp/v201405/CustomTargetingService/GetAllCustomTargetingKeysAndValuesExample.php +++ /dev/null @@ -1,137 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - $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/v201405/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php b/examples/Dfp/v201405/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php deleted file mode 100755 index d2f684e0a..000000000 --- a/examples/Dfp/v201405/CustomTargetingService/GetCustomTargetingKeysByStatementExample.php +++ /dev/null @@ -1,85 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - // 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/v201405/CustomTargetingService/UpdateCustomTargetingValuesExample.php b/examples/Dfp/v201405/CustomTargetingService/UpdateCustomTargetingValuesExample.php deleted file mode 100755 index 9b656461a..000000000 --- a/examples/Dfp/v201405/CustomTargetingService/UpdateCustomTargetingValuesExample.php +++ /dev/null @@ -1,106 +0,0 @@ -LogDefaults(); - - // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - // 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/v201405/InventoryService/DeactivateAdUnitsExample.php b/examples/Dfp/v201405/InventoryService/DeactivateAdUnitsExample.php deleted file mode 100755 index 085bd360b..000000000 --- a/examples/Dfp/v201405/InventoryService/DeactivateAdUnitsExample.php +++ /dev/null @@ -1,113 +0,0 @@ -LogDefaults(); - - // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); - - // 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/v201405/InventoryService/GetAdUnitsByStatementExample.php b/examples/Dfp/v201405/InventoryService/GetAdUnitsByStatementExample.php deleted file mode 100755 index a6f1e60bd..000000000 --- a/examples/Dfp/v201405/InventoryService/GetAdUnitsByStatementExample.php +++ /dev/null @@ -1,92 +0,0 @@ -LogDefaults(); - - // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); - - // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); - - // 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/v201405/InventoryService/UpdateAdUnitsExample.php b/examples/Dfp/v201405/InventoryService/UpdateAdUnitsExample.php deleted file mode 100755 index 82635ee9f..000000000 --- a/examples/Dfp/v201405/InventoryService/UpdateAdUnitsExample.php +++ /dev/null @@ -1,94 +0,0 @@ -LogDefaults(); - - // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); - - // 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/v201405/LabelService/DeactivateLabelsExample.php b/examples/Dfp/v201405/LabelService/DeactivateLabelsExample.php deleted file mode 100755 index bbcd882d7..000000000 --- a/examples/Dfp/v201405/LabelService/DeactivateLabelsExample.php +++ /dev/null @@ -1,111 +0,0 @@ -LogDefaults(); - - // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201405'); - - // 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/v201405/LabelService/UpdateLabelsExample.php b/examples/Dfp/v201405/LabelService/UpdateLabelsExample.php deleted file mode 100755 index ba4de64a7..000000000 --- a/examples/Dfp/v201405/LabelService/UpdateLabelsExample.php +++ /dev/null @@ -1,95 +0,0 @@ -LogDefaults(); - - // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201405'); - - // 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/v201405/LicaService/GetLicasByStatementExample.php b/examples/Dfp/v201405/LicaService/GetLicasByStatementExample.php deleted file mode 100755 index 79c7190bb..000000000 --- a/examples/Dfp/v201405/LicaService/GetLicasByStatementExample.php +++ /dev/null @@ -1,93 +0,0 @@ -LogDefaults(); - - // Get the LineItemCreativeAssociationService. - $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201405'); - - // 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/v201405/OrderService/ApproveOrdersExample.php b/examples/Dfp/v201405/OrderService/ApproveOrdersExample.php deleted file mode 100755 index 28ec04bc4..000000000 --- a/examples/Dfp/v201405/OrderService/ApproveOrdersExample.php +++ /dev/null @@ -1,128 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201405'); - - // 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/v201405/OrderService/GetOrdersByStatementExample.php b/examples/Dfp/v201405/OrderService/GetOrdersByStatementExample.php deleted file mode 100755 index 5090837fc..000000000 --- a/examples/Dfp/v201405/OrderService/GetOrdersByStatementExample.php +++ /dev/null @@ -1,92 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201405'); - - // 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/v201405/OrderService/UpdateOrdersExample.php b/examples/Dfp/v201405/OrderService/UpdateOrdersExample.php deleted file mode 100755 index 9714a3c7a..000000000 --- a/examples/Dfp/v201405/OrderService/UpdateOrdersExample.php +++ /dev/null @@ -1,99 +0,0 @@ -LogDefaults(); - - // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201405'); - - // 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/v201405/PlacementService/DeactivatePlacementsExample.php b/examples/Dfp/v201405/PlacementService/DeactivatePlacementsExample.php deleted file mode 100755 index f9b8d20c7..000000000 --- a/examples/Dfp/v201405/PlacementService/DeactivatePlacementsExample.php +++ /dev/null @@ -1,115 +0,0 @@ -LogDefaults(); - - // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201405'); - - // 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/v201405/PlacementService/GetPlacementsByStatementExample.php b/examples/Dfp/v201405/PlacementService/GetPlacementsByStatementExample.php deleted file mode 100755 index 78e45bffd..000000000 --- a/examples/Dfp/v201405/PlacementService/GetPlacementsByStatementExample.php +++ /dev/null @@ -1,85 +0,0 @@ -LogDefaults(); - - // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201405'); - - // 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/v201405/PlacementService/UpdatePlacementsExample.php b/examples/Dfp/v201405/PlacementService/UpdatePlacementsExample.php deleted file mode 100755 index 2fe14ac54..000000000 --- a/examples/Dfp/v201405/PlacementService/UpdatePlacementsExample.php +++ /dev/null @@ -1,102 +0,0 @@ -LogDefaults(); - - // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201405'); - - // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); - - // 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/v201405/ReportService/DownloadReportExample.php b/examples/Dfp/v201405/ReportService/DownloadReportExample.php deleted file mode 100755 index 26417a8cd..000000000 --- a/examples/Dfp/v201405/ReportService/DownloadReportExample.php +++ /dev/null @@ -1,81 +0,0 @@ -LogDefaults(); - - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); - - // 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/v201405/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201405/ReportService/RunReportWithCustomFields.php deleted file mode 100755 index 949ccd151..000000000 --- a/examples/Dfp/v201405/ReportService/RunReportWithCustomFields.php +++ /dev/null @@ -1,133 +0,0 @@ -LogDefaults(); - - // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); - - // 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', 'v201405'); - - // 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/v201405/ReportService/RunSalesReportExample.php b/examples/Dfp/v201405/ReportService/RunSalesReportExample.php deleted file mode 100755 index 252974fdf..000000000 --- a/examples/Dfp/v201405/ReportService/RunSalesReportExample.php +++ /dev/null @@ -1,90 +0,0 @@ -LogDefaults(); - - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); - - // 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/v201405/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php b/examples/Dfp/v201405/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php deleted file mode 100755 index 2e338eb7b..000000000 --- a/examples/Dfp/v201405/SuggestedAdUnitService/ApproveSuggestedAdUnitsExample.php +++ /dev/null @@ -1,126 +0,0 @@ -LogDefaults(); - - // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201405'); - - // Set the number of requests for suggested ad units greater than which to - // approve. - $numRequests = 'INSERT_NUMBER_OF_REQUESTS_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('numRequests' => new NumberValue($numRequests))); - - // Statement parts to help build a statement to select suggested ad units that - // are highly requested. - $pqlTemplate = "WHERE numRequests >= :numRequests ORDER BY id LIMIT %d " - . "OFFSET %d"; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; - - $page = null; - $suggestedAdUnitIds = array(); - - do { - // Get suggested ad units by statement. - $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); - - // 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' " - . "will be approved.\n", $i++, $suggestedAdUnit->id); - $suggestedAdUnitIds[] = $suggestedAdUnitId->id; - } - } - - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); - - printf("Number of suggested ad units to be approved: %d\n", - count($suggestedAdUnitIds)); - - if (count($suggestedAdUnitIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', - implode(',', $suggestedAdUnitIds)); - $filterStatement = new Statement($filterStatementText); - - // Create action. - $action = new ApproveSuggestedAdUnit(); - - // Perform action. - $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, - $filterStatement); - - // 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/v201405/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php b/examples/Dfp/v201405/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php deleted file mode 100755 index cc4845265..000000000 --- a/examples/Dfp/v201405/SuggestedAdUnitService/GetSuggestedAdUnitsByStatementExample.php +++ /dev/null @@ -1,88 +0,0 @@ -LogDefaults(); - - // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201405'); - - // 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/v201405/TeamService/GetTeamsByStatementExample.php b/examples/Dfp/v201405/TeamService/GetTeamsByStatementExample.php deleted file mode 100755 index f88067645..000000000 --- a/examples/Dfp/v201405/TeamService/GetTeamsByStatementExample.php +++ /dev/null @@ -1,83 +0,0 @@ -LogDefaults(); - - // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201405'); - - // 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/v201405/TeamService/UpdateTeamsExample.php b/examples/Dfp/v201405/TeamService/UpdateTeamsExample.php deleted file mode 100755 index 22faed856..000000000 --- a/examples/Dfp/v201405/TeamService/UpdateTeamsExample.php +++ /dev/null @@ -1,106 +0,0 @@ -LogDefaults(); - - // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201405'); - - // 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/v201405/UserService/DeactivateUserExample.php b/examples/Dfp/v201405/UserService/DeactivateUserExample.php deleted file mode 100755 index 012ec34b4..000000000 --- a/examples/Dfp/v201405/UserService/DeactivateUserExample.php +++ /dev/null @@ -1,121 +0,0 @@ -LogDefaults(); - - // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); - - // 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/v201405/UserService/GetUsersByStatementExample.php b/examples/Dfp/v201405/UserService/GetUsersByStatementExample.php deleted file mode 100755 index 0288b3484..000000000 --- a/examples/Dfp/v201405/UserService/GetUsersByStatementExample.php +++ /dev/null @@ -1,81 +0,0 @@ -LogDefaults(); - - // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); - - // 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/v201405/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php b/examples/Dfp/v201405/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php deleted file mode 100755 index a68feed8c..000000000 --- a/examples/Dfp/v201405/UserTeamAssociationService/DeleteUserTeamAssociationsExample.php +++ /dev/null @@ -1,120 +0,0 @@ -LogDefaults(); - - // Get the UserTeamAssociationService. - $userTeamAssociationService = - $user->GetService('UserTeamAssociationService', 'v201405'); - - // 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/v201405/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php b/examples/Dfp/v201405/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php deleted file mode 100755 index b03a8217a..000000000 --- a/examples/Dfp/v201405/UserTeamAssociationService/GetUserTeamAssociationsByStatementExample.php +++ /dev/null @@ -1,94 +0,0 @@ -LogDefaults(); - - // Get the UserTeamAssociationService. - $userTeamAssociationService = $user->GetService('UserTeamAssociationService', - 'v201405'); - - // Get the UserService. - $userService = $user->GetService("UserService", "v201405"); - - // 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/v201408/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201408/ActivityGroupService/GetActiveActivityGroups.php index d49686f4b..68bce953a 100755 --- a/examples/Dfp/v201408/ActivityGroupService/GetActiveActivityGroups.php +++ b/examples/Dfp/v201408/ActivityGroupService/GetActiveActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201408/ActivityGroupService/GetAllActivityGroups.php index 56780771d..b31a5d8c2 100755 --- a/examples/Dfp/v201408/ActivityGroupService/GetAllActivityGroups.php +++ b/examples/Dfp/v201408/ActivityGroupService/GetAllActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201408/ActivityGroupService/UpdateActivityGroups.php index 7b7f98da8..8a454d88f 100755 --- a/examples/Dfp/v201408/ActivityGroupService/UpdateActivityGroups.php +++ b/examples/Dfp/v201408/ActivityGroupService/UpdateActivityGroups.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity group to update. diff --git a/examples/Dfp/v201408/ActivityService/GetActiveActivities.php b/examples/Dfp/v201408/ActivityService/GetActiveActivities.php index 768da3969..5b88fdf25 100755 --- a/examples/Dfp/v201408/ActivityService/GetActiveActivities.php +++ b/examples/Dfp/v201408/ActivityService/GetActiveActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ActivityService/GetAllActivities.php b/examples/Dfp/v201408/ActivityService/GetAllActivities.php index ed57dfbc5..21ecf01fb 100755 --- a/examples/Dfp/v201408/ActivityService/GetAllActivities.php +++ b/examples/Dfp/v201408/ActivityService/GetAllActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ActivityService/UpdateActivities.php b/examples/Dfp/v201408/ActivityService/UpdateActivities.php index 7fb665d57..db96bc0bf 100755 --- a/examples/Dfp/v201408/ActivityService/UpdateActivities.php +++ b/examples/Dfp/v201408/ActivityService/UpdateActivities.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity to update. diff --git a/examples/Dfp/v201408/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201408/AudienceSegmentService/GetAllAudienceSegments.php index 1a593410a..e1cffb8db 100755 --- a/examples/Dfp/v201408/AudienceSegmentService/GetAllAudienceSegments.php +++ b/examples/Dfp/v201408/AudienceSegmentService/GetAllAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201408/AudienceSegmentService/GetFirstPartyAudienceSegments.php index b1faf8e65..9bb7e3904 100755 --- a/examples/Dfp/v201408/AudienceSegmentService/GetFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201408/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201408/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php index 3f696ee41..a803de267 100755 --- a/examples/Dfp/v201408/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201408/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to populate. diff --git a/examples/Dfp/v201408/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201408/AudienceSegmentService/UpdateAudienceSegments.php index 599e81160..141153b5d 100755 --- a/examples/Dfp/v201408/AudienceSegmentService/UpdateAudienceSegments.php +++ b/examples/Dfp/v201408/AudienceSegmentService/UpdateAudienceSegments.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to update. diff --git a/examples/Dfp/v201408/BaseRateService/GetAllBaseRates.php b/examples/Dfp/v201408/BaseRateService/GetAllBaseRates.php index ab5a2b56f..fa3ea2031 100755 --- a/examples/Dfp/v201408/BaseRateService/GetAllBaseRates.php +++ b/examples/Dfp/v201408/BaseRateService/GetAllBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/BaseRateService/GetBaseRatesForRateCard.php b/examples/Dfp/v201408/BaseRateService/GetBaseRatesForRateCard.php index 5db5cece8..b28d54c2e 100755 --- a/examples/Dfp/v201408/BaseRateService/GetBaseRatesForRateCard.php +++ b/examples/Dfp/v201408/BaseRateService/GetBaseRatesForRateCard.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the rate card ID to filter base rates on. diff --git a/examples/Dfp/v201408/BaseRateService/UpdateBaseRates.php b/examples/Dfp/v201408/BaseRateService/UpdateBaseRates.php index ea13f2474..81b7ce531 100755 --- a/examples/Dfp/v201408/BaseRateService/UpdateBaseRates.php +++ b/examples/Dfp/v201408/BaseRateService/UpdateBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the base rate to update. diff --git a/examples/Dfp/v201408/CompanyService/GetAdvertisers.php b/examples/Dfp/v201408/CompanyService/GetAdvertisers.php index 9ed151e0e..357f156ca 100755 --- a/examples/Dfp/v201408/CompanyService/GetAdvertisers.php +++ b/examples/Dfp/v201408/CompanyService/GetAdvertisers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CompanyService/GetAllCompanies.php b/examples/Dfp/v201408/CompanyService/GetAllCompanies.php index 3d8889016..a676e293a 100755 --- a/examples/Dfp/v201408/CompanyService/GetAllCompanies.php +++ b/examples/Dfp/v201408/CompanyService/GetAllCompanies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CompanyService/UpdateCompanies.php b/examples/Dfp/v201408/CompanyService/UpdateCompanies.php index 1496738c3..42c075bc8 100755 --- a/examples/Dfp/v201408/CompanyService/UpdateCompanies.php +++ b/examples/Dfp/v201408/CompanyService/UpdateCompanies.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the company to update. diff --git a/examples/Dfp/v201408/ContactService/GetAllContacts.php b/examples/Dfp/v201408/ContactService/GetAllContacts.php index 17bb696a6..c3ff9b4f1 100755 --- a/examples/Dfp/v201408/ContactService/GetAllContacts.php +++ b/examples/Dfp/v201408/ContactService/GetAllContacts.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201408/ContactService/GetUninvitedContacts.php index 1c0578515..2345df254 100755 --- a/examples/Dfp/v201408/ContactService/GetUninvitedContacts.php +++ b/examples/Dfp/v201408/ContactService/GetUninvitedContacts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ContactService/UpdateContacts.php b/examples/Dfp/v201408/ContactService/UpdateContacts.php index 423aedc16..9c909c61e 100755 --- a/examples/Dfp/v201408/ContactService/UpdateContacts.php +++ b/examples/Dfp/v201408/ContactService/UpdateContacts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the contact to update. diff --git a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php index 3fd87fa07..38d433f8c 100755 --- a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to delete. diff --git a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php index 7cdc35052..a233da9cf 100755 --- a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php index 362b42d74..c9d12055f 100755 --- a/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201408/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to update. diff --git a/examples/Dfp/v201408/ContentService/GetAllContent.php b/examples/Dfp/v201408/ContentService/GetAllContent.php index a820af2d1..fd662562d 100755 --- a/examples/Dfp/v201408/ContentService/GetAllContent.php +++ b/examples/Dfp/v201408/ContentService/GetAllContent.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ContentService/GetComedyContent.php b/examples/Dfp/v201408/ContentService/GetComedyContent.php index e4a36dbe1..37f89822d 100755 --- a/examples/Dfp/v201408/ContentService/GetComedyContent.php +++ b/examples/Dfp/v201408/ContentService/GetComedyContent.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeService/GetAllCreatives.php b/examples/Dfp/v201408/CreativeService/GetAllCreatives.php index 3ed8f961a..ecf6ee74e 100755 --- a/examples/Dfp/v201408/CreativeService/GetAllCreatives.php +++ b/examples/Dfp/v201408/CreativeService/GetAllCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeService/GetImageCreatives.php b/examples/Dfp/v201408/CreativeService/GetImageCreatives.php index 244504bb3..1e7cafd9b 100755 --- a/examples/Dfp/v201408/CreativeService/GetImageCreatives.php +++ b/examples/Dfp/v201408/CreativeService/GetImageCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeService/UpdateCreatives.php b/examples/Dfp/v201408/CreativeService/UpdateCreatives.php index a0d8f2081..994d6d3ac 100755 --- a/examples/Dfp/v201408/CreativeService/UpdateCreatives.php +++ b/examples/Dfp/v201408/CreativeService/UpdateCreatives.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative to update. diff --git a/examples/Dfp/v201408/CreativeSetService/GetAllCreativesSets.php b/examples/Dfp/v201408/CreativeSetService/GetAllCreativesSets.php index d2bd58ebf..b59df4e88 100755 --- a/examples/Dfp/v201408/CreativeSetService/GetAllCreativesSets.php +++ b/examples/Dfp/v201408/CreativeSetService/GetAllCreativesSets.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeSetService/GetCreativeSetsForMasterCreative.php b/examples/Dfp/v201408/CreativeSetService/GetCreativeSetsForMasterCreative.php index 9b2e23eeb..cbdb6f15b 100755 --- a/examples/Dfp/v201408/CreativeSetService/GetCreativeSetsForMasterCreative.php +++ b/examples/Dfp/v201408/CreativeSetService/GetCreativeSetsForMasterCreative.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the master creative to get all creative sets for. diff --git a/examples/Dfp/v201408/CreativeSetService/UpdateCreativeSet.php b/examples/Dfp/v201408/CreativeSetService/UpdateCreativeSet.php index 250ad6b01..4515fcced 100755 --- a/examples/Dfp/v201408/CreativeSetService/UpdateCreativeSet.php +++ b/examples/Dfp/v201408/CreativeSetService/UpdateCreativeSet.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative set to update. diff --git a/examples/Dfp/v201408/CreativeTemplateService/GetAllCreativeTemplates.php b/examples/Dfp/v201408/CreativeTemplateService/GetAllCreativeTemplates.php index c08b715e4..0298f28b3 100755 --- a/examples/Dfp/v201408/CreativeTemplateService/GetAllCreativeTemplates.php +++ b/examples/Dfp/v201408/CreativeTemplateService/GetAllCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php b/examples/Dfp/v201408/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php index 93dd70fa3..e9630cfdc 100755 --- a/examples/Dfp/v201408/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php +++ b/examples/Dfp/v201408/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php b/examples/Dfp/v201408/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php index b30f296c9..82ae53eff 100755 --- a/examples/Dfp/v201408/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php +++ b/examples/Dfp/v201408/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper label to deactivate. diff --git a/examples/Dfp/v201408/CreativeWrapperService/GetActiveCreativeWrappers.php b/examples/Dfp/v201408/CreativeWrapperService/GetActiveCreativeWrappers.php index 454d1bfc4..ef77a6c61 100755 --- a/examples/Dfp/v201408/CreativeWrapperService/GetActiveCreativeWrappers.php +++ b/examples/Dfp/v201408/CreativeWrapperService/GetActiveCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeWrapperService/GetAllCreativeWrappers.php b/examples/Dfp/v201408/CreativeWrapperService/GetAllCreativeWrappers.php index 9e9ede1f0..23de25656 100755 --- a/examples/Dfp/v201408/CreativeWrapperService/GetAllCreativeWrappers.php +++ b/examples/Dfp/v201408/CreativeWrapperService/GetAllCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CreativeWrapperService/UpdateCreativeWrappers.php b/examples/Dfp/v201408/CreativeWrapperService/UpdateCreativeWrappers.php index 391d2fbe3..5f683071d 100755 --- a/examples/Dfp/v201408/CreativeWrapperService/UpdateCreativeWrappers.php +++ b/examples/Dfp/v201408/CreativeWrapperService/UpdateCreativeWrappers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper to update. diff --git a/examples/Dfp/v201408/CustomFieldService/DeactivateCustomFields.php b/examples/Dfp/v201408/CustomFieldService/DeactivateCustomFields.php index fb49d4f82..51e66cf88 100755 --- a/examples/Dfp/v201408/CustomFieldService/DeactivateCustomFields.php +++ b/examples/Dfp/v201408/CustomFieldService/DeactivateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to deactivate. diff --git a/examples/Dfp/v201408/CustomFieldService/GetAllCustomFields.php b/examples/Dfp/v201408/CustomFieldService/GetAllCustomFields.php index 2921789c7..071f01c12 100755 --- a/examples/Dfp/v201408/CustomFieldService/GetAllCustomFields.php +++ b/examples/Dfp/v201408/CustomFieldService/GetAllCustomFields.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CustomFieldService/GetCustomFieldsForLineItems.php b/examples/Dfp/v201408/CustomFieldService/GetCustomFieldsForLineItems.php index 909daa192..4f6ac07c3 100755 --- a/examples/Dfp/v201408/CustomFieldService/GetCustomFieldsForLineItems.php +++ b/examples/Dfp/v201408/CustomFieldService/GetCustomFieldsForLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CustomFieldService/UpdateCustomFields.php b/examples/Dfp/v201408/CustomFieldService/UpdateCustomFields.php index 992b2737a..67c763426 100755 --- a/examples/Dfp/v201408/CustomFieldService/UpdateCustomFields.php +++ b/examples/Dfp/v201408/CustomFieldService/UpdateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to update. diff --git a/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingKeys.php b/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingKeys.php index e11bfa4e8..0e832bf2e 100755 --- a/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingKeys.php +++ b/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingKeys.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to delete. diff --git a/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingValues.php b/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingValues.php index 413b53ee5..7a659abe1 100755 --- a/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingValues.php +++ b/examples/Dfp/v201408/CustomTargetingService/DeleteCustomTargetingValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to delete. diff --git a/examples/Dfp/v201408/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php b/examples/Dfp/v201408/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php index eb6f41b5f..75621c426 100755 --- a/examples/Dfp/v201408/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201408/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php b/examples/Dfp/v201408/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php index 73002087b..4d0352b0b 100755 --- a/examples/Dfp/v201408/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201408/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingKeys.php b/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingKeys.php index 75a7da530..2805bab3c 100755 --- a/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingKeys.php +++ b/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingKeys.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to update. diff --git a/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingValues.php b/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingValues.php index 9f51dc432..bfdf356a3 100755 --- a/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingValues.php +++ b/examples/Dfp/v201408/CustomTargetingService/UpdateCustomTargetingValues.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to update. diff --git a/examples/Dfp/v201408/ExchangeRateService/GetAllExchangeRates.php b/examples/Dfp/v201408/ExchangeRateService/GetAllExchangeRates.php index a16a024b4..59a822033 100755 --- a/examples/Dfp/v201408/ExchangeRateService/GetAllExchangeRates.php +++ b/examples/Dfp/v201408/ExchangeRateService/GetAllExchangeRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ExchangeRateService/GetExchangeRatesForCurrencyCode.php b/examples/Dfp/v201408/ExchangeRateService/GetExchangeRatesForCurrencyCode.php index c6b90130b..577c11e29 100755 --- a/examples/Dfp/v201408/ExchangeRateService/GetExchangeRatesForCurrencyCode.php +++ b/examples/Dfp/v201408/ExchangeRateService/GetExchangeRatesForCurrencyCode.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the currency code to filter on here. diff --git a/examples/Dfp/v201408/ExchangeRateService/UpdateExchangeRates.php b/examples/Dfp/v201408/ExchangeRateService/UpdateExchangeRates.php index edc444b60..14d3cc8f4 100755 --- a/examples/Dfp/v201408/ExchangeRateService/UpdateExchangeRates.php +++ b/examples/Dfp/v201408/ExchangeRateService/UpdateExchangeRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the exchange rate to update. diff --git a/examples/Dfp/v201408/ForecastService/GetForecast.php b/examples/Dfp/v201408/ForecastService/GetForecast.php index f7e6ab8e8..17aedd579 100755 --- a/examples/Dfp/v201408/ForecastService/GetForecast.php +++ b/examples/Dfp/v201408/ForecastService/GetForecast.php @@ -40,7 +40,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php'; try { // Get DfpUser from credentials in "../auth.ini" diff --git a/examples/Dfp/v201408/ForecastService/GetForecastById.php b/examples/Dfp/v201408/ForecastService/GetForecastById.php index 26551118f..1a9961cc9 100755 --- a/examples/Dfp/v201408/ForecastService/GetForecastById.php +++ b/examples/Dfp/v201408/ForecastService/GetForecastById.php @@ -40,7 +40,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php'; try { // Get DfpUser from credentials in "../auth.ini" diff --git a/examples/Dfp/v201408/InventoryService/ArchiveAdUnits.php b/examples/Dfp/v201408/InventoryService/ArchiveAdUnits.php index 6d79936ac..982b75896 100755 --- a/examples/Dfp/v201408/InventoryService/ArchiveAdUnits.php +++ b/examples/Dfp/v201408/InventoryService/ArchiveAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to archive underneath. diff --git a/examples/Dfp/v201408/InventoryService/AssignAdUnitsToPlacement.php b/examples/Dfp/v201408/InventoryService/AssignAdUnitsToPlacement.php index 27bc1f1b3..9782783c2 100755 --- a/examples/Dfp/v201408/InventoryService/AssignAdUnitsToPlacement.php +++ b/examples/Dfp/v201408/InventoryService/AssignAdUnitsToPlacement.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to add to the placement. diff --git a/examples/Dfp/v201408/InventoryService/GetAllAdUnitSizes.php b/examples/Dfp/v201408/InventoryService/GetAllAdUnitSizes.php index 87d51fd25..ead014bc5 100755 --- a/examples/Dfp/v201408/InventoryService/GetAllAdUnitSizes.php +++ b/examples/Dfp/v201408/InventoryService/GetAllAdUnitSizes.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/InventoryService/GetAllAdUnits.php b/examples/Dfp/v201408/InventoryService/GetAllAdUnits.php index fd344c69c..53cb584ac 100755 --- a/examples/Dfp/v201408/InventoryService/GetAllAdUnits.php +++ b/examples/Dfp/v201408/InventoryService/GetAllAdUnits.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/InventoryService/GetTopLevelAdUnits.php b/examples/Dfp/v201408/InventoryService/GetTopLevelAdUnits.php index fa1821473..3748e2857 100755 --- a/examples/Dfp/v201408/InventoryService/GetTopLevelAdUnits.php +++ b/examples/Dfp/v201408/InventoryService/GetTopLevelAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/InventoryService/UpdateAdUnits.php b/examples/Dfp/v201408/InventoryService/UpdateAdUnits.php index 8ddb9d88a..d1dcf7011 100755 --- a/examples/Dfp/v201408/InventoryService/UpdateAdUnits.php +++ b/examples/Dfp/v201408/InventoryService/UpdateAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the ad unit to update. diff --git a/examples/Dfp/v201408/LabelService/DeactivateLabels.php b/examples/Dfp/v201408/LabelService/DeactivateLabels.php index 9aff0bf82..6f64b6510 100755 --- a/examples/Dfp/v201408/LabelService/DeactivateLabels.php +++ b/examples/Dfp/v201408/LabelService/DeactivateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to deactivate. diff --git a/examples/Dfp/v201408/LabelService/GetActiveLabels.php b/examples/Dfp/v201408/LabelService/GetActiveLabels.php index 217e7b88a..100ea1910 100755 --- a/examples/Dfp/v201408/LabelService/GetActiveLabels.php +++ b/examples/Dfp/v201408/LabelService/GetActiveLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LabelService/GetAllLabels.php b/examples/Dfp/v201408/LabelService/GetAllLabels.php index ffb74d23b..32b0d7ada 100755 --- a/examples/Dfp/v201408/LabelService/GetAllLabels.php +++ b/examples/Dfp/v201408/LabelService/GetAllLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LabelService/UpdateLabels.php b/examples/Dfp/v201408/LabelService/UpdateLabels.php index 3a9692759..3bd34de6e 100755 --- a/examples/Dfp/v201408/LabelService/UpdateLabels.php +++ b/examples/Dfp/v201408/LabelService/UpdateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to update. diff --git a/examples/Dfp/v201408/LineItemCreativeAssociationService/DeactivateLicas.php b/examples/Dfp/v201408/LineItemCreativeAssociationService/DeactivateLicas.php index 0d79e0bc6..14dc4f8bd 100755 --- a/examples/Dfp/v201408/LineItemCreativeAssociationService/DeactivateLicas.php +++ b/examples/Dfp/v201408/LineItemCreativeAssociationService/DeactivateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to deactivate LICAs for. diff --git a/examples/Dfp/v201408/LineItemCreativeAssociationService/GetAllLicas.php b/examples/Dfp/v201408/LineItemCreativeAssociationService/GetAllLicas.php index 05880f4f4..f2bc6aeba 100755 --- a/examples/Dfp/v201408/LineItemCreativeAssociationService/GetAllLicas.php +++ b/examples/Dfp/v201408/LineItemCreativeAssociationService/GetAllLicas.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemCreativeAssociationService/GetLicasForLineItem.php b/examples/Dfp/v201408/LineItemCreativeAssociationService/GetLicasForLineItem.php index 80bf6ba0f..9ae6acea9 100755 --- a/examples/Dfp/v201408/LineItemCreativeAssociationService/GetLicasForLineItem.php +++ b/examples/Dfp/v201408/LineItemCreativeAssociationService/GetLicasForLineItem.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to fetch all LICAs for. diff --git a/examples/Dfp/v201408/LineItemCreativeAssociationService/UpdateLicas.php b/examples/Dfp/v201408/LineItemCreativeAssociationService/UpdateLicas.php index 954405f90..1acc87c98 100755 --- a/examples/Dfp/v201408/LineItemCreativeAssociationService/UpdateLicas.php +++ b/examples/Dfp/v201408/LineItemCreativeAssociationService/UpdateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the line item ID of the LICA to update. diff --git a/examples/Dfp/v201408/LineItemService/CreateLineItems.php b/examples/Dfp/v201408/LineItemService/CreateLineItems.php index a760c66ef..42d7c86de 100755 --- a/examples/Dfp/v201408/LineItemService/CreateLineItems.php +++ b/examples/Dfp/v201408/LineItemService/CreateLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemService/CreateVideoLineItems.php b/examples/Dfp/v201408/LineItemService/CreateVideoLineItems.php index 1bf90b3f8..a4a4cd30c 100755 --- a/examples/Dfp/v201408/LineItemService/CreateVideoLineItems.php +++ b/examples/Dfp/v201408/LineItemService/CreateVideoLineItems.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemService/GetAllLineItems.php b/examples/Dfp/v201408/LineItemService/GetAllLineItems.php index 3c0b8a146..d31a5c104 100755 --- a/examples/Dfp/v201408/LineItemService/GetAllLineItems.php +++ b/examples/Dfp/v201408/LineItemService/GetAllLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemService/GetLineItemsThatNeedCreatives.php b/examples/Dfp/v201408/LineItemService/GetLineItemsThatNeedCreatives.php index 9999f91f5..8a8bc0182 100755 --- a/examples/Dfp/v201408/LineItemService/GetLineItemsThatNeedCreatives.php +++ b/examples/Dfp/v201408/LineItemService/GetLineItemsThatNeedCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201408/LineItemService/GetRecentlyUpdatedLineItems.php index bf937cf51..0b8cbdeab 100755 --- a/examples/Dfp/v201408/LineItemService/GetRecentlyUpdatedLineItems.php +++ b/examples/Dfp/v201408/LineItemService/GetRecentlyUpdatedLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/LineItemService/PauseLineItems.php b/examples/Dfp/v201408/LineItemService/PauseLineItems.php index f1430023a..1c748f6e7 100755 --- a/examples/Dfp/v201408/LineItemService/PauseLineItems.php +++ b/examples/Dfp/v201408/LineItemService/PauseLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to pause. diff --git a/examples/Dfp/v201408/LineItemService/UpdateLineItems.php b/examples/Dfp/v201408/LineItemService/UpdateLineItems.php index cb90d6ae6..74c3899c4 100755 --- a/examples/Dfp/v201408/LineItemService/UpdateLineItems.php +++ b/examples/Dfp/v201408/LineItemService/UpdateLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to update. diff --git a/examples/Dfp/v201408/OrderService/ApproveOrders.php b/examples/Dfp/v201408/OrderService/ApproveOrders.php index a44643eb4..da4c82d5c 100755 --- a/examples/Dfp/v201408/OrderService/ApproveOrders.php +++ b/examples/Dfp/v201408/OrderService/ApproveOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to approve. diff --git a/examples/Dfp/v201408/OrderService/GetAllOrders.php b/examples/Dfp/v201408/OrderService/GetAllOrders.php index f1bd59456..c45f1884b 100755 --- a/examples/Dfp/v201408/OrderService/GetAllOrders.php +++ b/examples/Dfp/v201408/OrderService/GetAllOrders.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/OrderService/GetOrdersStartingSoon.php b/examples/Dfp/v201408/OrderService/GetOrdersStartingSoon.php index d917da2ea..e1b7e9867 100755 --- a/examples/Dfp/v201408/OrderService/GetOrdersStartingSoon.php +++ b/examples/Dfp/v201408/OrderService/GetOrdersStartingSoon.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/OrderService/UpdateOrders.php b/examples/Dfp/v201408/OrderService/UpdateOrders.php index bb18cf161..0e829bf7f 100755 --- a/examples/Dfp/v201408/OrderService/UpdateOrders.php +++ b/examples/Dfp/v201408/OrderService/UpdateOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to update. diff --git a/examples/Dfp/v201408/PlacementService/DeactivatePlacements.php b/examples/Dfp/v201408/PlacementService/DeactivatePlacements.php index df4a07059..4d9fc288b 100755 --- a/examples/Dfp/v201408/PlacementService/DeactivatePlacements.php +++ b/examples/Dfp/v201408/PlacementService/DeactivatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to deactivate. diff --git a/examples/Dfp/v201408/PlacementService/GetActivePlacements.php b/examples/Dfp/v201408/PlacementService/GetActivePlacements.php index 226b003d9..bef8e184d 100755 --- a/examples/Dfp/v201408/PlacementService/GetActivePlacements.php +++ b/examples/Dfp/v201408/PlacementService/GetActivePlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PlacementService/GetAllPlacements.php b/examples/Dfp/v201408/PlacementService/GetAllPlacements.php index 922f79b10..f1c5e45aa 100755 --- a/examples/Dfp/v201408/PlacementService/GetAllPlacements.php +++ b/examples/Dfp/v201408/PlacementService/GetAllPlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PlacementService/UpdatePlacements.php b/examples/Dfp/v201408/PlacementService/UpdatePlacements.php index a2ff60fad..d575fa03b 100755 --- a/examples/Dfp/v201408/PlacementService/UpdatePlacements.php +++ b/examples/Dfp/v201408/PlacementService/UpdatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to update. diff --git a/examples/Dfp/v201408/PremiumRateService/GetAllPremiumRates.php b/examples/Dfp/v201408/PremiumRateService/GetAllPremiumRates.php index 5fb4e24f1..4652d2639 100755 --- a/examples/Dfp/v201408/PremiumRateService/GetAllPremiumRates.php +++ b/examples/Dfp/v201408/PremiumRateService/GetAllPremiumRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PremiumRateService/GetPremiumRatesForRateCard.php b/examples/Dfp/v201408/PremiumRateService/GetPremiumRatesForRateCard.php index 50f6c29aa..18ea7c50a 100755 --- a/examples/Dfp/v201408/PremiumRateService/GetPremiumRatesForRateCard.php +++ b/examples/Dfp/v201408/PremiumRateService/GetPremiumRatesForRateCard.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the rate card to get premium rates for. diff --git a/examples/Dfp/v201408/PremiumRateService/UpdatePremiumRates.php b/examples/Dfp/v201408/PremiumRateService/UpdatePremiumRates.php index 941ee6156..3ac9b77a5 100755 --- a/examples/Dfp/v201408/PremiumRateService/UpdatePremiumRates.php +++ b/examples/Dfp/v201408/PremiumRateService/UpdatePremiumRates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the premium rate to update. diff --git a/examples/Dfp/v201408/ProductService/GetAllProducts.php b/examples/Dfp/v201408/ProductService/GetAllProducts.php index 7502a679f..810418c1c 100755 --- a/examples/Dfp/v201408/ProductService/GetAllProducts.php +++ b/examples/Dfp/v201408/ProductService/GetAllProducts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProductService/GetProductsForProductTemplate.php b/examples/Dfp/v201408/ProductService/GetProductsForProductTemplate.php index 05287e10e..95bf9553c 100755 --- a/examples/Dfp/v201408/ProductService/GetProductsForProductTemplate.php +++ b/examples/Dfp/v201408/ProductService/GetProductsForProductTemplate.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to filter products by. diff --git a/examples/Dfp/v201408/ProductService/UpdateProducts.php b/examples/Dfp/v201408/ProductService/UpdateProducts.php index abea79b81..3d078b576 100755 --- a/examples/Dfp/v201408/ProductService/UpdateProducts.php +++ b/examples/Dfp/v201408/ProductService/UpdateProducts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product to update. diff --git a/examples/Dfp/v201408/ProductTemplateService/ActivateProductTemplates.php b/examples/Dfp/v201408/ProductTemplateService/ActivateProductTemplates.php index be8af5089..b4fa67297 100755 --- a/examples/Dfp/v201408/ProductTemplateService/ActivateProductTemplates.php +++ b/examples/Dfp/v201408/ProductTemplateService/ActivateProductTemplates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to activate. diff --git a/examples/Dfp/v201408/ProductTemplateService/GetAllProductTemplates.php b/examples/Dfp/v201408/ProductTemplateService/GetAllProductTemplates.php index c0f45fa5c..7775b8ac4 100755 --- a/examples/Dfp/v201408/ProductTemplateService/GetAllProductTemplates.php +++ b/examples/Dfp/v201408/ProductTemplateService/GetAllProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProductTemplateService/GetSponsorshipProductTemplates.php b/examples/Dfp/v201408/ProductTemplateService/GetSponsorshipProductTemplates.php index ed16b6a37..d8fab72f3 100755 --- a/examples/Dfp/v201408/ProductTemplateService/GetSponsorshipProductTemplates.php +++ b/examples/Dfp/v201408/ProductTemplateService/GetSponsorshipProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProductTemplateService/UpdateProductTemplates.php b/examples/Dfp/v201408/ProductTemplateService/UpdateProductTemplates.php index ddb6151da..e2b1c0e46 100755 --- a/examples/Dfp/v201408/ProductTemplateService/UpdateProductTemplates.php +++ b/examples/Dfp/v201408/ProductTemplateService/UpdateProductTemplates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to update. diff --git a/examples/Dfp/v201408/ProposalLineItemService/ArchiveProposalLineItems.php b/examples/Dfp/v201408/ProposalLineItemService/ArchiveProposalLineItems.php index f6720c603..a1729c370 100755 --- a/examples/Dfp/v201408/ProposalLineItemService/ArchiveProposalLineItems.php +++ b/examples/Dfp/v201408/ProposalLineItemService/ArchiveProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to archive. diff --git a/examples/Dfp/v201408/ProposalLineItemService/CreateProposalLineItems.php b/examples/Dfp/v201408/ProposalLineItemService/CreateProposalLineItems.php index efcf976a9..fc4e752c3 100755 --- a/examples/Dfp/v201408/ProposalLineItemService/CreateProposalLineItems.php +++ b/examples/Dfp/v201408/ProposalLineItemService/CreateProposalLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal that the proposal line items will belong to. diff --git a/examples/Dfp/v201408/ProposalLineItemService/GetAllProposalLineItems.php b/examples/Dfp/v201408/ProposalLineItemService/GetAllProposalLineItems.php index c10e67803..87371644b 100755 --- a/examples/Dfp/v201408/ProposalLineItemService/GetAllProposalLineItems.php +++ b/examples/Dfp/v201408/ProposalLineItemService/GetAllProposalLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProposalLineItemService/GetProposalLineItemsForProposal.php b/examples/Dfp/v201408/ProposalLineItemService/GetProposalLineItemsForProposal.php index 13358451e..25a602842 100755 --- a/examples/Dfp/v201408/ProposalLineItemService/GetProposalLineItemsForProposal.php +++ b/examples/Dfp/v201408/ProposalLineItemService/GetProposalLineItemsForProposal.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to filter proposal line items on. diff --git a/examples/Dfp/v201408/ProposalLineItemService/UpdateProposalLineItems.php b/examples/Dfp/v201408/ProposalLineItemService/UpdateProposalLineItems.php index 11af44371..3857c8882 100755 --- a/examples/Dfp/v201408/ProposalLineItemService/UpdateProposalLineItems.php +++ b/examples/Dfp/v201408/ProposalLineItemService/UpdateProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to update. diff --git a/examples/Dfp/v201408/ProposalService/GetAllProposals.php b/examples/Dfp/v201408/ProposalService/GetAllProposals.php index 04acd8d02..3c3d9a095 100755 --- a/examples/Dfp/v201408/ProposalService/GetAllProposals.php +++ b/examples/Dfp/v201408/ProposalService/GetAllProposals.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProposalService/GetProposalsPendingApproval.php b/examples/Dfp/v201408/ProposalService/GetProposalsPendingApproval.php index 2111bcb1c..baf38de47 100755 --- a/examples/Dfp/v201408/ProposalService/GetProposalsPendingApproval.php +++ b/examples/Dfp/v201408/ProposalService/GetProposalsPendingApproval.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ProposalService/SubmitProposalsForApproval.php b/examples/Dfp/v201408/ProposalService/SubmitProposalsForApproval.php index b2fdecbbd..ceb02a025 100755 --- a/examples/Dfp/v201408/ProposalService/SubmitProposalsForApproval.php +++ b/examples/Dfp/v201408/ProposalService/SubmitProposalsForApproval.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to submit for approval. diff --git a/examples/Dfp/v201408/ProposalService/UpdateProposals.php b/examples/Dfp/v201408/ProposalService/UpdateProposals.php index 8561d4510..f1037cde6 100755 --- a/examples/Dfp/v201408/ProposalService/UpdateProposals.php +++ b/examples/Dfp/v201408/ProposalService/UpdateProposals.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to update. diff --git a/examples/Dfp/v201408/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201408/PublisherQueryLanguageService/FetchMatchTables.php index 157edd7c2..051149d56 100755 --- a/examples/Dfp/v201408/PublisherQueryLanguageService/FetchMatchTables.php +++ b/examples/Dfp/v201408/PublisherQueryLanguageService/FetchMatchTables.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PublisherQueryLanguageService/GetAllBrowsers.php b/examples/Dfp/v201408/PublisherQueryLanguageService/GetAllBrowsers.php index d9e56a720..6903c1408 100755 --- a/examples/Dfp/v201408/PublisherQueryLanguageService/GetAllBrowsers.php +++ b/examples/Dfp/v201408/PublisherQueryLanguageService/GetAllBrowsers.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201408/PublisherQueryLanguageService/GetGeoTargets.php index a7bc7c1a1..7c0991c3a 100755 --- a/examples/Dfp/v201408/PublisherQueryLanguageService/GetGeoTargets.php +++ b/examples/Dfp/v201408/PublisherQueryLanguageService/GetGeoTargets.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201408/PublisherQueryLanguageService/GetLineItemsNamedLike.php index c5475a60b..635d6f454 100755 --- a/examples/Dfp/v201408/PublisherQueryLanguageService/GetLineItemsNamedLike.php +++ b/examples/Dfp/v201408/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/RateCardService/GetAllRateCards.php b/examples/Dfp/v201408/RateCardService/GetAllRateCards.php index 349fe61e7..006ed2abb 100755 --- a/examples/Dfp/v201408/RateCardService/GetAllRateCards.php +++ b/examples/Dfp/v201408/RateCardService/GetAllRateCards.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/RateCardService/GetUsdRateCards.php b/examples/Dfp/v201408/RateCardService/GetUsdRateCards.php index 6e5535d8d..8b5ae83fc 100755 --- a/examples/Dfp/v201408/RateCardService/GetUsdRateCards.php +++ b/examples/Dfp/v201408/RateCardService/GetUsdRateCards.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ReportService/RunDeliveryReportForOrder.php b/examples/Dfp/v201408/ReportService/RunDeliveryReportForOrder.php index 135b72886..2a0e462c2 100755 --- a/examples/Dfp/v201408/ReportService/RunDeliveryReportForOrder.php +++ b/examples/Dfp/v201408/ReportService/RunDeliveryReportForOrder.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to run the report for. diff --git a/examples/Dfp/v201408/ReportService/RunInventoryReport.php b/examples/Dfp/v201408/ReportService/RunInventoryReport.php index 62ec2e7a2..2d6ed84e8 100755 --- a/examples/Dfp/v201408/ReportService/RunInventoryReport.php +++ b/examples/Dfp/v201408/ReportService/RunInventoryReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -62,8 +62,8 @@ // Create statement to filter on a parent ad unit with the root ad unit ID to // include all ad units in the network. $statementBuilder = new StatementBuilder(); - $statementBuilder->Where('PARENT_AD_UNIT_ID = - :parentAdUnitId')->WithBindVariableValue('parentAdUnitId', $rootAdUnitId); + $statementBuilder->Where('PARENT_AD_UNIT_ID = :parentAdUnitId') + ->WithBindVariableValue('parentAdUnitId', intval($rootAdUnitId)); // Create report query. $reportQuery = new ReportQuery(); diff --git a/examples/Dfp/v201408/ReportService/RunReachReport.php b/examples/Dfp/v201408/ReportService/RunReachReport.php index 15d738f9d..736984677 100755 --- a/examples/Dfp/v201408/ReportService/RunReachReport.php +++ b/examples/Dfp/v201408/ReportService/RunReachReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201408/ReportService/RunReportWithCustomFields.php index cfa7ea94e..5693ce60b 100755 --- a/examples/Dfp/v201408/ReportService/RunReportWithCustomFields.php +++ b/examples/Dfp/v201408/ReportService/RunReportWithCustomFields.php @@ -38,8 +38,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/SuggestedAdUnitService/ApproveSuggestedAdUnits.php b/examples/Dfp/v201408/SuggestedAdUnitService/ApproveSuggestedAdUnits.php index e07179109..65437ceb8 100755 --- a/examples/Dfp/v201408/SuggestedAdUnitService/ApproveSuggestedAdUnits.php +++ b/examples/Dfp/v201408/SuggestedAdUnitService/ApproveSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201408/SuggestedAdUnitService/GetAllSuggestedAdUnits.php b/examples/Dfp/v201408/SuggestedAdUnitService/GetAllSuggestedAdUnits.php index d9778a7e5..08e8cafe5 100755 --- a/examples/Dfp/v201408/SuggestedAdUnitService/GetAllSuggestedAdUnits.php +++ b/examples/Dfp/v201408/SuggestedAdUnitService/GetAllSuggestedAdUnits.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php b/examples/Dfp/v201408/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php index 42d3549b6..425f921cf 100755 --- a/examples/Dfp/v201408/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php +++ b/examples/Dfp/v201408/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201408/TeamService/GetAllTeams.php b/examples/Dfp/v201408/TeamService/GetAllTeams.php index 8de12502a..b57eb1da1 100755 --- a/examples/Dfp/v201408/TeamService/GetAllTeams.php +++ b/examples/Dfp/v201408/TeamService/GetAllTeams.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/TeamService/UpdateTeams.php b/examples/Dfp/v201408/TeamService/UpdateTeams.php index 56069be3f..de717b313 100755 --- a/examples/Dfp/v201408/TeamService/UpdateTeams.php +++ b/examples/Dfp/v201408/TeamService/UpdateTeams.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the team to update. diff --git a/examples/Dfp/v201408/UserService/DeactivateUsers.php b/examples/Dfp/v201408/UserService/DeactivateUsers.php index d9a95cbdd..8884bc42a 100755 --- a/examples/Dfp/v201408/UserService/DeactivateUsers.php +++ b/examples/Dfp/v201408/UserService/DeactivateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to deactivate. diff --git a/examples/Dfp/v201408/UserService/GetAllUsers.php b/examples/Dfp/v201408/UserService/GetAllUsers.php index 9491bb4b1..277082b5f 100755 --- a/examples/Dfp/v201408/UserService/GetAllUsers.php +++ b/examples/Dfp/v201408/UserService/GetAllUsers.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/UserService/GetUsersByEmailAddress.php b/examples/Dfp/v201408/UserService/GetUsersByEmailAddress.php index b1d97a93f..12b13030e 100755 --- a/examples/Dfp/v201408/UserService/GetUsersByEmailAddress.php +++ b/examples/Dfp/v201408/UserService/GetUsersByEmailAddress.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the email address of the user to select. diff --git a/examples/Dfp/v201408/UserService/UpdateUsers.php b/examples/Dfp/v201408/UserService/UpdateUsers.php index 494853a92..0b98b436f 100755 --- a/examples/Dfp/v201408/UserService/UpdateUsers.php +++ b/examples/Dfp/v201408/UserService/UpdateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to update. diff --git a/examples/Dfp/v201408/UserTeamAssociationService/DeleteUserTeamAssociations.php b/examples/Dfp/v201408/UserTeamAssociationService/DeleteUserTeamAssociations.php index ebbe18f42..1bbc55d92 100755 --- a/examples/Dfp/v201408/UserTeamAssociationService/DeleteUserTeamAssociations.php +++ b/examples/Dfp/v201408/UserTeamAssociationService/DeleteUserTeamAssociations.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to delete user team associations for. diff --git a/examples/Dfp/v201408/UserTeamAssociationService/GetAllUserTeamAssociations.php b/examples/Dfp/v201408/UserTeamAssociationService/GetAllUserTeamAssociations.php index e91f410f4..705073d06 100755 --- a/examples/Dfp/v201408/UserTeamAssociationService/GetAllUserTeamAssociations.php +++ b/examples/Dfp/v201408/UserTeamAssociationService/GetAllUserTeamAssociations.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/UserTeamAssociationService/GetUserTeamAssociationsForUser.php b/examples/Dfp/v201408/UserTeamAssociationService/GetUserTeamAssociationsForUser.php index c1b9e5dbe..2eef14b5d 100755 --- a/examples/Dfp/v201408/UserTeamAssociationService/GetUserTeamAssociationsForUser.php +++ b/examples/Dfp/v201408/UserTeamAssociationService/GetUserTeamAssociationsForUser.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to fetch all user team associations for. diff --git a/examples/Dfp/v201408/UserTeamAssociationService/UpdateUserTeamAssociations.php b/examples/Dfp/v201408/UserTeamAssociationService/UpdateUserTeamAssociations.php index 0f0ce52ed..59ede037c 100755 --- a/examples/Dfp/v201408/UserTeamAssociationService/UpdateUserTeamAssociations.php +++ b/examples/Dfp/v201408/UserTeamAssociationService/UpdateUserTeamAssociations.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the user ID of the user team association to update. diff --git a/examples/Dfp/v201408/WorkflowRequestService/ApproveWorkflowApprovalRequests.php b/examples/Dfp/v201408/WorkflowRequestService/ApproveWorkflowApprovalRequests.php index 912002bbd..c6e0b832a 100755 --- a/examples/Dfp/v201408/WorkflowRequestService/ApproveWorkflowApprovalRequests.php +++ b/examples/Dfp/v201408/WorkflowRequestService/ApproveWorkflowApprovalRequests.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to approve workflow approval requests for. diff --git a/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowApprovalRequests.php b/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowApprovalRequests.php index 6895c569f..4efe7a226 100755 --- a/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowApprovalRequests.php +++ b/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowApprovalRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowExternalConditionRequests.php b/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowExternalConditionRequests.php index b8532ee08..e09bdfe36 100755 --- a/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201408/WorkflowRequestService/GetWorkflowExternalConditionRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201408/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php b/examples/Dfp/v201408/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php index 2c5756625..b358ccf9c 100755 --- a/examples/Dfp/v201408/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201408/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to trigger workflow external conditions for. diff --git a/examples/Dfp/v201411/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201411/ActivityGroupService/GetActiveActivityGroups.php index 6f71783c3..9e78768bf 100755 --- a/examples/Dfp/v201411/ActivityGroupService/GetActiveActivityGroups.php +++ b/examples/Dfp/v201411/ActivityGroupService/GetActiveActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201411/ActivityGroupService/GetAllActivityGroups.php index 1f81dedfd..12c222a52 100755 --- a/examples/Dfp/v201411/ActivityGroupService/GetAllActivityGroups.php +++ b/examples/Dfp/v201411/ActivityGroupService/GetAllActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201411/ActivityGroupService/UpdateActivityGroups.php index d7e3369e3..9d6177034 100755 --- a/examples/Dfp/v201411/ActivityGroupService/UpdateActivityGroups.php +++ b/examples/Dfp/v201411/ActivityGroupService/UpdateActivityGroups.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity group to update. diff --git a/examples/Dfp/v201411/ActivityService/GetActiveActivities.php b/examples/Dfp/v201411/ActivityService/GetActiveActivities.php index 29f83edf0..1825c5c65 100755 --- a/examples/Dfp/v201411/ActivityService/GetActiveActivities.php +++ b/examples/Dfp/v201411/ActivityService/GetActiveActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ActivityService/GetAllActivities.php b/examples/Dfp/v201411/ActivityService/GetAllActivities.php index 148e5cd20..2de940a07 100755 --- a/examples/Dfp/v201411/ActivityService/GetAllActivities.php +++ b/examples/Dfp/v201411/ActivityService/GetAllActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ActivityService/UpdateActivities.php b/examples/Dfp/v201411/ActivityService/UpdateActivities.php index 0f05e2cbe..ffee49d32 100755 --- a/examples/Dfp/v201411/ActivityService/UpdateActivities.php +++ b/examples/Dfp/v201411/ActivityService/UpdateActivities.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity to update. diff --git a/examples/Dfp/v201411/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201411/AudienceSegmentService/GetAllAudienceSegments.php index 81c3f3f66..b975304cc 100755 --- a/examples/Dfp/v201411/AudienceSegmentService/GetAllAudienceSegments.php +++ b/examples/Dfp/v201411/AudienceSegmentService/GetAllAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201411/AudienceSegmentService/GetFirstPartyAudienceSegments.php index 5fdcc2046..1a83b53dd 100755 --- a/examples/Dfp/v201411/AudienceSegmentService/GetFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201411/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php index 95daa8e98..f2a6cfc69 100755 --- a/examples/Dfp/v201411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201411/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to populate. diff --git a/examples/Dfp/v201411/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201411/AudienceSegmentService/UpdateAudienceSegments.php index d4603dc95..52e6a61b5 100755 --- a/examples/Dfp/v201411/AudienceSegmentService/UpdateAudienceSegments.php +++ b/examples/Dfp/v201411/AudienceSegmentService/UpdateAudienceSegments.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to update. diff --git a/examples/Dfp/v201411/BaseRateService/GetAllBaseRates.php b/examples/Dfp/v201411/BaseRateService/GetAllBaseRates.php index 989797335..fa41bbc9e 100755 --- a/examples/Dfp/v201411/BaseRateService/GetAllBaseRates.php +++ b/examples/Dfp/v201411/BaseRateService/GetAllBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/BaseRateService/GetBaseRatesForRateCard.php b/examples/Dfp/v201411/BaseRateService/GetBaseRatesForRateCard.php index 0f7e89804..3353a48d0 100755 --- a/examples/Dfp/v201411/BaseRateService/GetBaseRatesForRateCard.php +++ b/examples/Dfp/v201411/BaseRateService/GetBaseRatesForRateCard.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the rate card ID to filter base rates on. diff --git a/examples/Dfp/v201411/BaseRateService/UpdateBaseRates.php b/examples/Dfp/v201411/BaseRateService/UpdateBaseRates.php index 2b665912e..ab6dcb9be 100755 --- a/examples/Dfp/v201411/BaseRateService/UpdateBaseRates.php +++ b/examples/Dfp/v201411/BaseRateService/UpdateBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the base rate to update. diff --git a/examples/Dfp/v201411/CompanyService/GetAdvertisers.php b/examples/Dfp/v201411/CompanyService/GetAdvertisers.php index 639025455..acfbec9ac 100755 --- a/examples/Dfp/v201411/CompanyService/GetAdvertisers.php +++ b/examples/Dfp/v201411/CompanyService/GetAdvertisers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CompanyService/GetAllCompanies.php b/examples/Dfp/v201411/CompanyService/GetAllCompanies.php index 1a66ad3ae..7f907beb3 100755 --- a/examples/Dfp/v201411/CompanyService/GetAllCompanies.php +++ b/examples/Dfp/v201411/CompanyService/GetAllCompanies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CompanyService/UpdateCompanies.php b/examples/Dfp/v201411/CompanyService/UpdateCompanies.php index 7269acf88..16d6c5ca2 100755 --- a/examples/Dfp/v201411/CompanyService/UpdateCompanies.php +++ b/examples/Dfp/v201411/CompanyService/UpdateCompanies.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the company to update. diff --git a/examples/Dfp/v201411/ContactService/GetAllContacts.php b/examples/Dfp/v201411/ContactService/GetAllContacts.php index 632777d3f..6a9ad5aa5 100755 --- a/examples/Dfp/v201411/ContactService/GetAllContacts.php +++ b/examples/Dfp/v201411/ContactService/GetAllContacts.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201411/ContactService/GetUninvitedContacts.php index 05baf68d6..c0c341f69 100755 --- a/examples/Dfp/v201411/ContactService/GetUninvitedContacts.php +++ b/examples/Dfp/v201411/ContactService/GetUninvitedContacts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ContactService/UpdateContacts.php b/examples/Dfp/v201411/ContactService/UpdateContacts.php index 2656e000c..b88e6e9e7 100755 --- a/examples/Dfp/v201411/ContactService/UpdateContacts.php +++ b/examples/Dfp/v201411/ContactService/UpdateContacts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the contact to update. diff --git a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php index f23d55840..ecf48d7a4 100755 --- a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to delete. diff --git a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php index 4ee7c74b7..480f2d83e 100755 --- a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php index 101fcae47..959b58be6 100755 --- a/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201411/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to update. diff --git a/examples/Dfp/v201411/ContentService/GetAllContent.php b/examples/Dfp/v201411/ContentService/GetAllContent.php index ef576d430..2309d3490 100755 --- a/examples/Dfp/v201411/ContentService/GetAllContent.php +++ b/examples/Dfp/v201411/ContentService/GetAllContent.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeService/GetAllCreatives.php b/examples/Dfp/v201411/CreativeService/GetAllCreatives.php index 0a4897519..e536a9d26 100755 --- a/examples/Dfp/v201411/CreativeService/GetAllCreatives.php +++ b/examples/Dfp/v201411/CreativeService/GetAllCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeService/GetImageCreatives.php b/examples/Dfp/v201411/CreativeService/GetImageCreatives.php index 45ece194f..2ed7081a6 100755 --- a/examples/Dfp/v201411/CreativeService/GetImageCreatives.php +++ b/examples/Dfp/v201411/CreativeService/GetImageCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeService/UpdateCreatives.php b/examples/Dfp/v201411/CreativeService/UpdateCreatives.php index 90a703e2c..f08682267 100755 --- a/examples/Dfp/v201411/CreativeService/UpdateCreatives.php +++ b/examples/Dfp/v201411/CreativeService/UpdateCreatives.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative to update. diff --git a/examples/Dfp/v201411/CreativeSetService/GetAllCreativesSets.php b/examples/Dfp/v201411/CreativeSetService/GetAllCreativesSets.php index 1d0ab556b..2f92578cf 100755 --- a/examples/Dfp/v201411/CreativeSetService/GetAllCreativesSets.php +++ b/examples/Dfp/v201411/CreativeSetService/GetAllCreativesSets.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeSetService/GetCreativeSetsForMasterCreative.php b/examples/Dfp/v201411/CreativeSetService/GetCreativeSetsForMasterCreative.php index 429fdb19c..e330645f7 100755 --- a/examples/Dfp/v201411/CreativeSetService/GetCreativeSetsForMasterCreative.php +++ b/examples/Dfp/v201411/CreativeSetService/GetCreativeSetsForMasterCreative.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the master creative to get all creative sets for. diff --git a/examples/Dfp/v201411/CreativeSetService/UpdateCreativeSet.php b/examples/Dfp/v201411/CreativeSetService/UpdateCreativeSet.php index d0052288f..c0a87fbae 100755 --- a/examples/Dfp/v201411/CreativeSetService/UpdateCreativeSet.php +++ b/examples/Dfp/v201411/CreativeSetService/UpdateCreativeSet.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative set to update. diff --git a/examples/Dfp/v201411/CreativeTemplateService/GetAllCreativeTemplates.php b/examples/Dfp/v201411/CreativeTemplateService/GetAllCreativeTemplates.php index 0dabb64a2..99c184876 100755 --- a/examples/Dfp/v201411/CreativeTemplateService/GetAllCreativeTemplates.php +++ b/examples/Dfp/v201411/CreativeTemplateService/GetAllCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php b/examples/Dfp/v201411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php index 3a1ab1d0c..501518d6f 100755 --- a/examples/Dfp/v201411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php +++ b/examples/Dfp/v201411/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php b/examples/Dfp/v201411/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php index b03e834c3..478311896 100755 --- a/examples/Dfp/v201411/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php +++ b/examples/Dfp/v201411/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper label to deactivate. diff --git a/examples/Dfp/v201411/CreativeWrapperService/GetActiveCreativeWrappers.php b/examples/Dfp/v201411/CreativeWrapperService/GetActiveCreativeWrappers.php index 868e63a78..b5e2cfe39 100755 --- a/examples/Dfp/v201411/CreativeWrapperService/GetActiveCreativeWrappers.php +++ b/examples/Dfp/v201411/CreativeWrapperService/GetActiveCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeWrapperService/GetAllCreativeWrappers.php b/examples/Dfp/v201411/CreativeWrapperService/GetAllCreativeWrappers.php index cbb8b40dd..47d2936ef 100755 --- a/examples/Dfp/v201411/CreativeWrapperService/GetAllCreativeWrappers.php +++ b/examples/Dfp/v201411/CreativeWrapperService/GetAllCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CreativeWrapperService/UpdateCreativeWrappers.php b/examples/Dfp/v201411/CreativeWrapperService/UpdateCreativeWrappers.php index ec020ae3e..dcd3f774c 100755 --- a/examples/Dfp/v201411/CreativeWrapperService/UpdateCreativeWrappers.php +++ b/examples/Dfp/v201411/CreativeWrapperService/UpdateCreativeWrappers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper to update. diff --git a/examples/Dfp/v201411/CustomFieldService/DeactivateCustomFields.php b/examples/Dfp/v201411/CustomFieldService/DeactivateCustomFields.php index 8ab44a06c..25c6528ae 100755 --- a/examples/Dfp/v201411/CustomFieldService/DeactivateCustomFields.php +++ b/examples/Dfp/v201411/CustomFieldService/DeactivateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to deactivate. diff --git a/examples/Dfp/v201411/CustomFieldService/GetAllCustomFields.php b/examples/Dfp/v201411/CustomFieldService/GetAllCustomFields.php index 0941f18b2..9df8a5533 100755 --- a/examples/Dfp/v201411/CustomFieldService/GetAllCustomFields.php +++ b/examples/Dfp/v201411/CustomFieldService/GetAllCustomFields.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CustomFieldService/GetCustomFieldsForLineItems.php b/examples/Dfp/v201411/CustomFieldService/GetCustomFieldsForLineItems.php index 305d31d84..b85e532b7 100755 --- a/examples/Dfp/v201411/CustomFieldService/GetCustomFieldsForLineItems.php +++ b/examples/Dfp/v201411/CustomFieldService/GetCustomFieldsForLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CustomFieldService/UpdateCustomFields.php b/examples/Dfp/v201411/CustomFieldService/UpdateCustomFields.php index a29a74b8d..3706e89b9 100755 --- a/examples/Dfp/v201411/CustomFieldService/UpdateCustomFields.php +++ b/examples/Dfp/v201411/CustomFieldService/UpdateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to update. diff --git a/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingKeys.php b/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingKeys.php index 85d00d6a5..a502514b8 100755 --- a/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingKeys.php +++ b/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingKeys.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to delete. diff --git a/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingValues.php b/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingValues.php index 34a50781f..26b08323c 100755 --- a/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingValues.php +++ b/examples/Dfp/v201411/CustomTargetingService/DeleteCustomTargetingValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to delete. diff --git a/examples/Dfp/v201411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php b/examples/Dfp/v201411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php index 28417878e..b5715d13f 100755 --- a/examples/Dfp/v201411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201411/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php b/examples/Dfp/v201411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php index 5c72525ef..69537d8f5 100755 --- a/examples/Dfp/v201411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201411/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingKeys.php b/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingKeys.php index cbe4a5e9d..5fd9ef5f6 100755 --- a/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingKeys.php +++ b/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingKeys.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to update. diff --git a/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingValues.php b/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingValues.php index f056fa2e8..a2cf888dc 100755 --- a/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingValues.php +++ b/examples/Dfp/v201411/CustomTargetingService/UpdateCustomTargetingValues.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to update. diff --git a/examples/Dfp/v201411/ExchangeRateService/GetAllExchangeRates.php b/examples/Dfp/v201411/ExchangeRateService/GetAllExchangeRates.php index d040f02be..d27ab5190 100755 --- a/examples/Dfp/v201411/ExchangeRateService/GetAllExchangeRates.php +++ b/examples/Dfp/v201411/ExchangeRateService/GetAllExchangeRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ExchangeRateService/GetExchangeRatesForCurrencyCode.php b/examples/Dfp/v201411/ExchangeRateService/GetExchangeRatesForCurrencyCode.php index 8c61cf1a8..dd0a56741 100755 --- a/examples/Dfp/v201411/ExchangeRateService/GetExchangeRatesForCurrencyCode.php +++ b/examples/Dfp/v201411/ExchangeRateService/GetExchangeRatesForCurrencyCode.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the currency code to filter on here. diff --git a/examples/Dfp/v201411/ExchangeRateService/UpdateExchangeRates.php b/examples/Dfp/v201411/ExchangeRateService/UpdateExchangeRates.php index 14a76b3e0..f36102323 100755 --- a/examples/Dfp/v201411/ExchangeRateService/UpdateExchangeRates.php +++ b/examples/Dfp/v201411/ExchangeRateService/UpdateExchangeRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the exchange rate to update. diff --git a/examples/Dfp/v201411/ForecastService/GetForecast.php b/examples/Dfp/v201411/ForecastService/GetForecast.php index 45d830993..504c51788 100755 --- a/examples/Dfp/v201411/ForecastService/GetForecast.php +++ b/examples/Dfp/v201411/ForecastService/GetForecast.php @@ -40,7 +40,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php'; try { // Get DfpUser from credentials in "../auth.ini" diff --git a/examples/Dfp/v201411/ForecastService/GetForecastById.php b/examples/Dfp/v201411/ForecastService/GetForecastById.php index 88af75f08..9dfa8ccbe 100755 --- a/examples/Dfp/v201411/ForecastService/GetForecastById.php +++ b/examples/Dfp/v201411/ForecastService/GetForecastById.php @@ -40,7 +40,7 @@ require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php'; try { // Get DfpUser from credentials in "../auth.ini" diff --git a/examples/Dfp/v201411/InventoryService/ArchiveAdUnits.php b/examples/Dfp/v201411/InventoryService/ArchiveAdUnits.php index 4324a5c38..ea9658ff4 100755 --- a/examples/Dfp/v201411/InventoryService/ArchiveAdUnits.php +++ b/examples/Dfp/v201411/InventoryService/ArchiveAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to archive underneath. diff --git a/examples/Dfp/v201411/InventoryService/AssignAdUnitsToPlacement.php b/examples/Dfp/v201411/InventoryService/AssignAdUnitsToPlacement.php index ef31b81af..4d236c3d9 100755 --- a/examples/Dfp/v201411/InventoryService/AssignAdUnitsToPlacement.php +++ b/examples/Dfp/v201411/InventoryService/AssignAdUnitsToPlacement.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to add to the placement. diff --git a/examples/Dfp/v201411/InventoryService/GetAllAdUnitSizes.php b/examples/Dfp/v201411/InventoryService/GetAllAdUnitSizes.php index 56f4556fa..aea49afb8 100755 --- a/examples/Dfp/v201411/InventoryService/GetAllAdUnitSizes.php +++ b/examples/Dfp/v201411/InventoryService/GetAllAdUnitSizes.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/InventoryService/GetAllAdUnits.php b/examples/Dfp/v201411/InventoryService/GetAllAdUnits.php index 514c175e7..dbae5e24a 100755 --- a/examples/Dfp/v201411/InventoryService/GetAllAdUnits.php +++ b/examples/Dfp/v201411/InventoryService/GetAllAdUnits.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/InventoryService/GetTopLevelAdUnits.php b/examples/Dfp/v201411/InventoryService/GetTopLevelAdUnits.php index 93afe11b2..bd8577b32 100755 --- a/examples/Dfp/v201411/InventoryService/GetTopLevelAdUnits.php +++ b/examples/Dfp/v201411/InventoryService/GetTopLevelAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/InventoryService/UpdateAdUnits.php b/examples/Dfp/v201411/InventoryService/UpdateAdUnits.php index 48fdbc418..cf4c3c53c 100755 --- a/examples/Dfp/v201411/InventoryService/UpdateAdUnits.php +++ b/examples/Dfp/v201411/InventoryService/UpdateAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the ad unit to update. diff --git a/examples/Dfp/v201411/LabelService/DeactivateLabels.php b/examples/Dfp/v201411/LabelService/DeactivateLabels.php index c49d9aa4d..caaaeec7c 100755 --- a/examples/Dfp/v201411/LabelService/DeactivateLabels.php +++ b/examples/Dfp/v201411/LabelService/DeactivateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to deactivate. diff --git a/examples/Dfp/v201411/LabelService/GetActiveLabels.php b/examples/Dfp/v201411/LabelService/GetActiveLabels.php index 00d38823d..62e76eb0f 100755 --- a/examples/Dfp/v201411/LabelService/GetActiveLabels.php +++ b/examples/Dfp/v201411/LabelService/GetActiveLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LabelService/GetAllLabels.php b/examples/Dfp/v201411/LabelService/GetAllLabels.php index bbf998af9..bd5882f1a 100755 --- a/examples/Dfp/v201411/LabelService/GetAllLabels.php +++ b/examples/Dfp/v201411/LabelService/GetAllLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LabelService/UpdateLabels.php b/examples/Dfp/v201411/LabelService/UpdateLabels.php index 11a3b9ccc..178981026 100755 --- a/examples/Dfp/v201411/LabelService/UpdateLabels.php +++ b/examples/Dfp/v201411/LabelService/UpdateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to update. diff --git a/examples/Dfp/v201411/LineItemCreativeAssociationService/DeactivateLicas.php b/examples/Dfp/v201411/LineItemCreativeAssociationService/DeactivateLicas.php index 6465e54d2..4e5da7795 100755 --- a/examples/Dfp/v201411/LineItemCreativeAssociationService/DeactivateLicas.php +++ b/examples/Dfp/v201411/LineItemCreativeAssociationService/DeactivateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to deactivate LICAs for. diff --git a/examples/Dfp/v201411/LineItemCreativeAssociationService/GetAllLicas.php b/examples/Dfp/v201411/LineItemCreativeAssociationService/GetAllLicas.php index ed2ee090c..6f923aec2 100755 --- a/examples/Dfp/v201411/LineItemCreativeAssociationService/GetAllLicas.php +++ b/examples/Dfp/v201411/LineItemCreativeAssociationService/GetAllLicas.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LineItemCreativeAssociationService/GetLicasForLineItem.php b/examples/Dfp/v201411/LineItemCreativeAssociationService/GetLicasForLineItem.php index 7b9a3e506..76c30acff 100755 --- a/examples/Dfp/v201411/LineItemCreativeAssociationService/GetLicasForLineItem.php +++ b/examples/Dfp/v201411/LineItemCreativeAssociationService/GetLicasForLineItem.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to fetch all LICAs for. diff --git a/examples/Dfp/v201411/LineItemCreativeAssociationService/UpdateLicas.php b/examples/Dfp/v201411/LineItemCreativeAssociationService/UpdateLicas.php index 1508011a3..bae506ea5 100755 --- a/examples/Dfp/v201411/LineItemCreativeAssociationService/UpdateLicas.php +++ b/examples/Dfp/v201411/LineItemCreativeAssociationService/UpdateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the line item ID of the LICA to update. diff --git a/examples/Dfp/v201411/LineItemService/CreateLineItems.php b/examples/Dfp/v201411/LineItemService/CreateLineItems.php index 9ba7f51ad..02647d497 100755 --- a/examples/Dfp/v201411/LineItemService/CreateLineItems.php +++ b/examples/Dfp/v201411/LineItemService/CreateLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LineItemService/CreateVideoLineItems.php b/examples/Dfp/v201411/LineItemService/CreateVideoLineItems.php index 1b6ab8f0b..462c70d56 100755 --- a/examples/Dfp/v201411/LineItemService/CreateVideoLineItems.php +++ b/examples/Dfp/v201411/LineItemService/CreateVideoLineItems.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order that the line item will belong to. diff --git a/examples/Dfp/v201411/LineItemService/GetAllLineItems.php b/examples/Dfp/v201411/LineItemService/GetAllLineItems.php index 131e00ac4..bdc53b0a1 100755 --- a/examples/Dfp/v201411/LineItemService/GetAllLineItems.php +++ b/examples/Dfp/v201411/LineItemService/GetAllLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LineItemService/GetLineItemsThatNeedCreatives.php b/examples/Dfp/v201411/LineItemService/GetLineItemsThatNeedCreatives.php index a5c332832..71abb911d 100755 --- a/examples/Dfp/v201411/LineItemService/GetLineItemsThatNeedCreatives.php +++ b/examples/Dfp/v201411/LineItemService/GetLineItemsThatNeedCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201411/LineItemService/GetRecentlyUpdatedLineItems.php index 0cfb87171..f2d06ca95 100755 --- a/examples/Dfp/v201411/LineItemService/GetRecentlyUpdatedLineItems.php +++ b/examples/Dfp/v201411/LineItemService/GetRecentlyUpdatedLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/LineItemService/PauseLineItems.php b/examples/Dfp/v201411/LineItemService/PauseLineItems.php index 2e4fd85be..d580ac2dc 100755 --- a/examples/Dfp/v201411/LineItemService/PauseLineItems.php +++ b/examples/Dfp/v201411/LineItemService/PauseLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to pause. diff --git a/examples/Dfp/v201411/LineItemService/UpdateLineItems.php b/examples/Dfp/v201411/LineItemService/UpdateLineItems.php index 8d5fa57ae..9c5dfbc72 100755 --- a/examples/Dfp/v201411/LineItemService/UpdateLineItems.php +++ b/examples/Dfp/v201411/LineItemService/UpdateLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to update. diff --git a/examples/Dfp/v201411/OrderService/ApproveOrders.php b/examples/Dfp/v201411/OrderService/ApproveOrders.php index a18cd7117..0745d39d1 100755 --- a/examples/Dfp/v201411/OrderService/ApproveOrders.php +++ b/examples/Dfp/v201411/OrderService/ApproveOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to approve. diff --git a/examples/Dfp/v201411/OrderService/GetAllOrders.php b/examples/Dfp/v201411/OrderService/GetAllOrders.php index f44e8673c..6878993ca 100755 --- a/examples/Dfp/v201411/OrderService/GetAllOrders.php +++ b/examples/Dfp/v201411/OrderService/GetAllOrders.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/OrderService/GetOrdersStartingSoon.php b/examples/Dfp/v201411/OrderService/GetOrdersStartingSoon.php index 13f2e2102..6e690661e 100755 --- a/examples/Dfp/v201411/OrderService/GetOrdersStartingSoon.php +++ b/examples/Dfp/v201411/OrderService/GetOrdersStartingSoon.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/OrderService/UpdateOrders.php b/examples/Dfp/v201411/OrderService/UpdateOrders.php index 8788f0101..9cba5159d 100755 --- a/examples/Dfp/v201411/OrderService/UpdateOrders.php +++ b/examples/Dfp/v201411/OrderService/UpdateOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to update. diff --git a/examples/Dfp/v201411/PlacementService/DeactivatePlacements.php b/examples/Dfp/v201411/PlacementService/DeactivatePlacements.php index b0f0dacbe..3f5c45482 100755 --- a/examples/Dfp/v201411/PlacementService/DeactivatePlacements.php +++ b/examples/Dfp/v201411/PlacementService/DeactivatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to deactivate. diff --git a/examples/Dfp/v201411/PlacementService/GetActivePlacements.php b/examples/Dfp/v201411/PlacementService/GetActivePlacements.php index cd7ce5cdb..b5d57f268 100755 --- a/examples/Dfp/v201411/PlacementService/GetActivePlacements.php +++ b/examples/Dfp/v201411/PlacementService/GetActivePlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PlacementService/GetAllPlacements.php b/examples/Dfp/v201411/PlacementService/GetAllPlacements.php index 0c4fb1ee8..4edfe6a40 100755 --- a/examples/Dfp/v201411/PlacementService/GetAllPlacements.php +++ b/examples/Dfp/v201411/PlacementService/GetAllPlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PlacementService/UpdatePlacements.php b/examples/Dfp/v201411/PlacementService/UpdatePlacements.php index 1aa612744..9139f37db 100755 --- a/examples/Dfp/v201411/PlacementService/UpdatePlacements.php +++ b/examples/Dfp/v201411/PlacementService/UpdatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to update. diff --git a/examples/Dfp/v201411/PremiumRateService/GetAllPremiumRates.php b/examples/Dfp/v201411/PremiumRateService/GetAllPremiumRates.php index cc65ab0fb..9bab7f802 100755 --- a/examples/Dfp/v201411/PremiumRateService/GetAllPremiumRates.php +++ b/examples/Dfp/v201411/PremiumRateService/GetAllPremiumRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PremiumRateService/GetPremiumRatesForRateCard.php b/examples/Dfp/v201411/PremiumRateService/GetPremiumRatesForRateCard.php index e808b5817..9c7753420 100755 --- a/examples/Dfp/v201411/PremiumRateService/GetPremiumRatesForRateCard.php +++ b/examples/Dfp/v201411/PremiumRateService/GetPremiumRatesForRateCard.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the rate card to get premium rates for. diff --git a/examples/Dfp/v201411/PremiumRateService/UpdatePremiumRates.php b/examples/Dfp/v201411/PremiumRateService/UpdatePremiumRates.php index 37d23f29f..c50e2b8f7 100755 --- a/examples/Dfp/v201411/PremiumRateService/UpdatePremiumRates.php +++ b/examples/Dfp/v201411/PremiumRateService/UpdatePremiumRates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the premium rate to update. diff --git a/examples/Dfp/v201411/ProductService/GetAllProducts.php b/examples/Dfp/v201411/ProductService/GetAllProducts.php index 39ec7e6bc..0285c2777 100755 --- a/examples/Dfp/v201411/ProductService/GetAllProducts.php +++ b/examples/Dfp/v201411/ProductService/GetAllProducts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProductService/GetProductsForProductTemplate.php b/examples/Dfp/v201411/ProductService/GetProductsForProductTemplate.php index e3112b86a..15fc90cc1 100755 --- a/examples/Dfp/v201411/ProductService/GetProductsForProductTemplate.php +++ b/examples/Dfp/v201411/ProductService/GetProductsForProductTemplate.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to filter products by. diff --git a/examples/Dfp/v201411/ProductService/UpdateProducts.php b/examples/Dfp/v201411/ProductService/UpdateProducts.php index 6e037396f..0b0b5ca0d 100755 --- a/examples/Dfp/v201411/ProductService/UpdateProducts.php +++ b/examples/Dfp/v201411/ProductService/UpdateProducts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product to update. diff --git a/examples/Dfp/v201411/ProductTemplateService/ActivateProductTemplates.php b/examples/Dfp/v201411/ProductTemplateService/ActivateProductTemplates.php index 36cf6988d..265866c76 100755 --- a/examples/Dfp/v201411/ProductTemplateService/ActivateProductTemplates.php +++ b/examples/Dfp/v201411/ProductTemplateService/ActivateProductTemplates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to activate. diff --git a/examples/Dfp/v201411/ProductTemplateService/GetAllProductTemplates.php b/examples/Dfp/v201411/ProductTemplateService/GetAllProductTemplates.php index d4a3b8c7e..e2417b40b 100755 --- a/examples/Dfp/v201411/ProductTemplateService/GetAllProductTemplates.php +++ b/examples/Dfp/v201411/ProductTemplateService/GetAllProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProductTemplateService/GetSponsorshipProductTemplates.php b/examples/Dfp/v201411/ProductTemplateService/GetSponsorshipProductTemplates.php index b86bae608..fd36773f3 100755 --- a/examples/Dfp/v201411/ProductTemplateService/GetSponsorshipProductTemplates.php +++ b/examples/Dfp/v201411/ProductTemplateService/GetSponsorshipProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProductTemplateService/UpdateProductTemplates.php b/examples/Dfp/v201411/ProductTemplateService/UpdateProductTemplates.php index 5dc87a3d7..41e79475c 100755 --- a/examples/Dfp/v201411/ProductTemplateService/UpdateProductTemplates.php +++ b/examples/Dfp/v201411/ProductTemplateService/UpdateProductTemplates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to update. diff --git a/examples/Dfp/v201411/ProposalLineItemService/ArchiveProposalLineItems.php b/examples/Dfp/v201411/ProposalLineItemService/ArchiveProposalLineItems.php index cb954db96..56c85c8af 100755 --- a/examples/Dfp/v201411/ProposalLineItemService/ArchiveProposalLineItems.php +++ b/examples/Dfp/v201411/ProposalLineItemService/ArchiveProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to archive. diff --git a/examples/Dfp/v201411/ProposalLineItemService/CreateProposalLineItems.php b/examples/Dfp/v201411/ProposalLineItemService/CreateProposalLineItems.php index b2e89bdf2..709a2cadd 100755 --- a/examples/Dfp/v201411/ProposalLineItemService/CreateProposalLineItems.php +++ b/examples/Dfp/v201411/ProposalLineItemService/CreateProposalLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal that the proposal line items will belong to. diff --git a/examples/Dfp/v201411/ProposalLineItemService/GetAllProposalLineItems.php b/examples/Dfp/v201411/ProposalLineItemService/GetAllProposalLineItems.php index c3612c1e7..495a681cd 100755 --- a/examples/Dfp/v201411/ProposalLineItemService/GetAllProposalLineItems.php +++ b/examples/Dfp/v201411/ProposalLineItemService/GetAllProposalLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProposalLineItemService/GetProposalLineItemsForProposal.php b/examples/Dfp/v201411/ProposalLineItemService/GetProposalLineItemsForProposal.php index 9fb005272..7dd57f312 100755 --- a/examples/Dfp/v201411/ProposalLineItemService/GetProposalLineItemsForProposal.php +++ b/examples/Dfp/v201411/ProposalLineItemService/GetProposalLineItemsForProposal.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to filter proposal line items on. diff --git a/examples/Dfp/v201411/ProposalLineItemService/UpdateProposalLineItems.php b/examples/Dfp/v201411/ProposalLineItemService/UpdateProposalLineItems.php index 67b245bb2..c896eabf2 100755 --- a/examples/Dfp/v201411/ProposalLineItemService/UpdateProposalLineItems.php +++ b/examples/Dfp/v201411/ProposalLineItemService/UpdateProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to update. diff --git a/examples/Dfp/v201411/ProposalService/GetAllProposals.php b/examples/Dfp/v201411/ProposalService/GetAllProposals.php index c027ecd22..a5473215d 100755 --- a/examples/Dfp/v201411/ProposalService/GetAllProposals.php +++ b/examples/Dfp/v201411/ProposalService/GetAllProposals.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProposalService/GetProposalsPendingApproval.php b/examples/Dfp/v201411/ProposalService/GetProposalsPendingApproval.php index 070a85840..d3952f9da 100755 --- a/examples/Dfp/v201411/ProposalService/GetProposalsPendingApproval.php +++ b/examples/Dfp/v201411/ProposalService/GetProposalsPendingApproval.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ProposalService/SubmitProposalsForApproval.php b/examples/Dfp/v201411/ProposalService/SubmitProposalsForApproval.php index 6cf23a56c..2227e2f7c 100755 --- a/examples/Dfp/v201411/ProposalService/SubmitProposalsForApproval.php +++ b/examples/Dfp/v201411/ProposalService/SubmitProposalsForApproval.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to submit for approval. diff --git a/examples/Dfp/v201411/ProposalService/UpdateProposals.php b/examples/Dfp/v201411/ProposalService/UpdateProposals.php index fb1ee6342..7d3907b27 100755 --- a/examples/Dfp/v201411/ProposalService/UpdateProposals.php +++ b/examples/Dfp/v201411/ProposalService/UpdateProposals.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to update. diff --git a/examples/Dfp/v201411/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201411/PublisherQueryLanguageService/FetchMatchTables.php index b2c4591a6..5000f24bf 100755 --- a/examples/Dfp/v201411/PublisherQueryLanguageService/FetchMatchTables.php +++ b/examples/Dfp/v201411/PublisherQueryLanguageService/FetchMatchTables.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PublisherQueryLanguageService/GetAllBrowsers.php b/examples/Dfp/v201411/PublisherQueryLanguageService/GetAllBrowsers.php index 75e7ca2b8..9e4096144 100755 --- a/examples/Dfp/v201411/PublisherQueryLanguageService/GetAllBrowsers.php +++ b/examples/Dfp/v201411/PublisherQueryLanguageService/GetAllBrowsers.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201411/PublisherQueryLanguageService/GetGeoTargets.php index 870ad1962..a5524e932 100755 --- a/examples/Dfp/v201411/PublisherQueryLanguageService/GetGeoTargets.php +++ b/examples/Dfp/v201411/PublisherQueryLanguageService/GetGeoTargets.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201411/PublisherQueryLanguageService/GetLineItemsNamedLike.php index fa42ec6c8..6af1db44a 100755 --- a/examples/Dfp/v201411/PublisherQueryLanguageService/GetLineItemsNamedLike.php +++ b/examples/Dfp/v201411/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/RateCardService/GetAllRateCards.php b/examples/Dfp/v201411/RateCardService/GetAllRateCards.php index 2ee30ceb9..2d3d4215c 100755 --- a/examples/Dfp/v201411/RateCardService/GetAllRateCards.php +++ b/examples/Dfp/v201411/RateCardService/GetAllRateCards.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/RateCardService/GetUsdRateCards.php b/examples/Dfp/v201411/RateCardService/GetUsdRateCards.php index f23a59931..8263e169c 100755 --- a/examples/Dfp/v201411/RateCardService/GetUsdRateCards.php +++ b/examples/Dfp/v201411/RateCardService/GetUsdRateCards.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ReportService/RunDeliveryReportForOrder.php b/examples/Dfp/v201411/ReportService/RunDeliveryReportForOrder.php index 5d1d42c6c..a6569ca2a 100755 --- a/examples/Dfp/v201411/ReportService/RunDeliveryReportForOrder.php +++ b/examples/Dfp/v201411/ReportService/RunDeliveryReportForOrder.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to run the report for. diff --git a/examples/Dfp/v201411/ReportService/RunInventoryReport.php b/examples/Dfp/v201411/ReportService/RunInventoryReport.php index f6752bd56..46ef289c1 100755 --- a/examples/Dfp/v201411/ReportService/RunInventoryReport.php +++ b/examples/Dfp/v201411/ReportService/RunInventoryReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -62,8 +62,8 @@ // Create statement to filter on a parent ad unit with the root ad unit ID to // include all ad units in the network. $statementBuilder = new StatementBuilder(); - $statementBuilder->Where('PARENT_AD_UNIT_ID = - :parentAdUnitId')->WithBindVariableValue('parentAdUnitId', $rootAdUnitId); + $statementBuilder->Where('PARENT_AD_UNIT_ID = :parentAdUnitId') + ->WithBindVariableValue('parentAdUnitId', intval($rootAdUnitId)); // Create report query. $reportQuery = new ReportQuery(); diff --git a/examples/Dfp/v201411/ReportService/RunReachReport.php b/examples/Dfp/v201411/ReportService/RunReachReport.php index a2bb75531..79a08a96e 100755 --- a/examples/Dfp/v201411/ReportService/RunReachReport.php +++ b/examples/Dfp/v201411/ReportService/RunReachReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201411/ReportService/RunReportWithCustomFields.php index 84cfc4ed7..055e4f81e 100755 --- a/examples/Dfp/v201411/ReportService/RunReportWithCustomFields.php +++ b/examples/Dfp/v201411/ReportService/RunReportWithCustomFields.php @@ -38,8 +38,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/SuggestedAdUnitService/ApproveSuggestedAdUnits.php b/examples/Dfp/v201411/SuggestedAdUnitService/ApproveSuggestedAdUnits.php index 8aba748c4..8bafbbf61 100755 --- a/examples/Dfp/v201411/SuggestedAdUnitService/ApproveSuggestedAdUnits.php +++ b/examples/Dfp/v201411/SuggestedAdUnitService/ApproveSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201411/SuggestedAdUnitService/GetAllSuggestedAdUnits.php b/examples/Dfp/v201411/SuggestedAdUnitService/GetAllSuggestedAdUnits.php index c36023466..d2cfd3af8 100755 --- a/examples/Dfp/v201411/SuggestedAdUnitService/GetAllSuggestedAdUnits.php +++ b/examples/Dfp/v201411/SuggestedAdUnitService/GetAllSuggestedAdUnits.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php b/examples/Dfp/v201411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php index c0ec85cc1..6a8060f0e 100755 --- a/examples/Dfp/v201411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php +++ b/examples/Dfp/v201411/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201411/TeamService/GetAllTeams.php b/examples/Dfp/v201411/TeamService/GetAllTeams.php index de94e5dd4..78342c051 100755 --- a/examples/Dfp/v201411/TeamService/GetAllTeams.php +++ b/examples/Dfp/v201411/TeamService/GetAllTeams.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/TeamService/UpdateTeams.php b/examples/Dfp/v201411/TeamService/UpdateTeams.php index a596f64b0..37eca37e6 100755 --- a/examples/Dfp/v201411/TeamService/UpdateTeams.php +++ b/examples/Dfp/v201411/TeamService/UpdateTeams.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the team to update. diff --git a/examples/Dfp/v201411/UserService/DeactivateUsers.php b/examples/Dfp/v201411/UserService/DeactivateUsers.php index ef88df36b..21e46a4f6 100755 --- a/examples/Dfp/v201411/UserService/DeactivateUsers.php +++ b/examples/Dfp/v201411/UserService/DeactivateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to deactivate. diff --git a/examples/Dfp/v201411/UserService/GetAllUsers.php b/examples/Dfp/v201411/UserService/GetAllUsers.php index f0ea6f4f2..96fbc4290 100755 --- a/examples/Dfp/v201411/UserService/GetAllUsers.php +++ b/examples/Dfp/v201411/UserService/GetAllUsers.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/UserService/GetUsersByEmailAddress.php b/examples/Dfp/v201411/UserService/GetUsersByEmailAddress.php index 6cb409e45..f55b23a40 100755 --- a/examples/Dfp/v201411/UserService/GetUsersByEmailAddress.php +++ b/examples/Dfp/v201411/UserService/GetUsersByEmailAddress.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the email address of the user to select. diff --git a/examples/Dfp/v201411/UserService/UpdateUsers.php b/examples/Dfp/v201411/UserService/UpdateUsers.php index 038799d8c..28b853b17 100755 --- a/examples/Dfp/v201411/UserService/UpdateUsers.php +++ b/examples/Dfp/v201411/UserService/UpdateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to update. diff --git a/examples/Dfp/v201411/UserTeamAssociationService/DeleteUserTeamAssociations.php b/examples/Dfp/v201411/UserTeamAssociationService/DeleteUserTeamAssociations.php index 65e24609e..7fbe17121 100755 --- a/examples/Dfp/v201411/UserTeamAssociationService/DeleteUserTeamAssociations.php +++ b/examples/Dfp/v201411/UserTeamAssociationService/DeleteUserTeamAssociations.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to delete user team associations for. diff --git a/examples/Dfp/v201411/UserTeamAssociationService/GetAllUserTeamAssociations.php b/examples/Dfp/v201411/UserTeamAssociationService/GetAllUserTeamAssociations.php index bf23bd8bf..8246feeaa 100755 --- a/examples/Dfp/v201411/UserTeamAssociationService/GetAllUserTeamAssociations.php +++ b/examples/Dfp/v201411/UserTeamAssociationService/GetAllUserTeamAssociations.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/UserTeamAssociationService/GetUserTeamAssociationsForUser.php b/examples/Dfp/v201411/UserTeamAssociationService/GetUserTeamAssociationsForUser.php index 442b8f299..ddf488906 100755 --- a/examples/Dfp/v201411/UserTeamAssociationService/GetUserTeamAssociationsForUser.php +++ b/examples/Dfp/v201411/UserTeamAssociationService/GetUserTeamAssociationsForUser.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to fetch all user team associations for. diff --git a/examples/Dfp/v201411/UserTeamAssociationService/UpdateUserTeamAssociations.php b/examples/Dfp/v201411/UserTeamAssociationService/UpdateUserTeamAssociations.php index 1fe0444ca..c37a00fa6 100755 --- a/examples/Dfp/v201411/UserTeamAssociationService/UpdateUserTeamAssociations.php +++ b/examples/Dfp/v201411/UserTeamAssociationService/UpdateUserTeamAssociations.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the user ID of the user team association to update. diff --git a/examples/Dfp/v201411/WorkflowRequestService/ApproveWorkflowApprovalRequests.php b/examples/Dfp/v201411/WorkflowRequestService/ApproveWorkflowApprovalRequests.php index 5c00bfbb7..4ce45c83e 100755 --- a/examples/Dfp/v201411/WorkflowRequestService/ApproveWorkflowApprovalRequests.php +++ b/examples/Dfp/v201411/WorkflowRequestService/ApproveWorkflowApprovalRequests.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to approve workflow approval requests for. diff --git a/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowApprovalRequests.php b/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowApprovalRequests.php index ec1331820..2b02c4084 100755 --- a/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowApprovalRequests.php +++ b/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowApprovalRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowExternalConditionRequests.php b/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowExternalConditionRequests.php index 468c8d232..ecd11e1a6 100755 --- a/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201411/WorkflowRequestService/GetWorkflowExternalConditionRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201411/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php b/examples/Dfp/v201411/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php index 8d7a12754..2b785b888 100755 --- a/examples/Dfp/v201411/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201411/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to trigger workflow external conditions for. diff --git a/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php index fa5809c1f..a4ad15914 100755 --- a/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php index 7a7a49fae..4cd2279fa 100755 --- a/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php index ee1f47616..af57bd1a3 100755 --- a/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php +++ b/examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity group to update. diff --git a/examples/Dfp/v201502/ActivityService/GetActiveActivities.php b/examples/Dfp/v201502/ActivityService/GetActiveActivities.php index f85e66299..edcafe41f 100755 --- a/examples/Dfp/v201502/ActivityService/GetActiveActivities.php +++ b/examples/Dfp/v201502/ActivityService/GetActiveActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ActivityService/GetAllActivities.php b/examples/Dfp/v201502/ActivityService/GetAllActivities.php index c909bba65..7b44a1225 100755 --- a/examples/Dfp/v201502/ActivityService/GetAllActivities.php +++ b/examples/Dfp/v201502/ActivityService/GetAllActivities.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ActivityService/UpdateActivities.php b/examples/Dfp/v201502/ActivityService/UpdateActivities.php index 5d8888067..4658b8c1c 100755 --- a/examples/Dfp/v201502/ActivityService/UpdateActivities.php +++ b/examples/Dfp/v201502/ActivityService/UpdateActivities.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the activity to update. diff --git a/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php index dca6f650f..2496923ac 100755 --- a/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/GetAllAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php index 56935b14c..caf51d86d 100755 --- a/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php index 91fed7d0a..c7b738f88 100755 --- a/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to populate. diff --git a/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php index 8a8849aa1..151bf9b5d 100755 --- a/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php +++ b/examples/Dfp/v201502/AudienceSegmentService/UpdateAudienceSegments.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the first party audience segment to update. diff --git a/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php b/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php index 438d063ab..0c2ec500b 100755 --- a/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php +++ b/examples/Dfp/v201502/BaseRateService/GetAllBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php b/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php index 6baa2b376..d4ea784a9 100755 --- a/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php +++ b/examples/Dfp/v201502/BaseRateService/GetBaseRatesForRateCard.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the rate card ID to filter base rates on. diff --git a/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php b/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php index 539eb4f1c..0286ab08d 100755 --- a/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php +++ b/examples/Dfp/v201502/BaseRateService/UpdateBaseRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the base rate to update. diff --git a/examples/Dfp/v201502/CompanyService/GetAdvertisers.php b/examples/Dfp/v201502/CompanyService/GetAdvertisers.php index 59db4392e..ca3404e6c 100755 --- a/examples/Dfp/v201502/CompanyService/GetAdvertisers.php +++ b/examples/Dfp/v201502/CompanyService/GetAdvertisers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CompanyService/GetAllCompanies.php b/examples/Dfp/v201502/CompanyService/GetAllCompanies.php index 7e3c76859..a46730736 100755 --- a/examples/Dfp/v201502/CompanyService/GetAllCompanies.php +++ b/examples/Dfp/v201502/CompanyService/GetAllCompanies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CompanyService/UpdateCompanies.php b/examples/Dfp/v201502/CompanyService/UpdateCompanies.php index 20d64c8cc..c42ec705a 100755 --- a/examples/Dfp/v201502/CompanyService/UpdateCompanies.php +++ b/examples/Dfp/v201502/CompanyService/UpdateCompanies.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the company to update. diff --git a/examples/Dfp/v201502/ContactService/GetAllContacts.php b/examples/Dfp/v201502/ContactService/GetAllContacts.php index 19b706e38..a27ad0b9f 100755 --- a/examples/Dfp/v201502/ContactService/GetAllContacts.php +++ b/examples/Dfp/v201502/ContactService/GetAllContacts.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php index 9a1d85967..b375683c0 100755 --- a/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php +++ b/examples/Dfp/v201502/ContactService/GetUninvitedContacts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ContactService/UpdateContacts.php b/examples/Dfp/v201502/ContactService/UpdateContacts.php index 4aab297b7..35f96f110 100755 --- a/examples/Dfp/v201502/ContactService/UpdateContacts.php +++ b/examples/Dfp/v201502/ContactService/UpdateContacts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the contact to update. diff --git a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php index e1850fc63..3b0e751a5 100755 --- a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to delete. diff --git a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php index e0046abf3..00f2fbf9f 100755 --- a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php index 557a349f5..4ef92d71a 100755 --- a/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php +++ b/examples/Dfp/v201502/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the content metadata key hierarchy to update. diff --git a/examples/Dfp/v201502/ContentService/GetAllContent.php b/examples/Dfp/v201502/ContentService/GetAllContent.php index 1cf863398..f8d75c15e 100755 --- a/examples/Dfp/v201502/ContentService/GetAllContent.php +++ b/examples/Dfp/v201502/ContentService/GetAllContent.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeService/GetAllCreatives.php b/examples/Dfp/v201502/CreativeService/GetAllCreatives.php index cf9657a27..f7b8c234e 100755 --- a/examples/Dfp/v201502/CreativeService/GetAllCreatives.php +++ b/examples/Dfp/v201502/CreativeService/GetAllCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeService/GetImageCreatives.php b/examples/Dfp/v201502/CreativeService/GetImageCreatives.php index b859cfb8e..6eb1394bd 100755 --- a/examples/Dfp/v201502/CreativeService/GetImageCreatives.php +++ b/examples/Dfp/v201502/CreativeService/GetImageCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeService/UpdateCreatives.php b/examples/Dfp/v201502/CreativeService/UpdateCreatives.php index cd49dd76b..02c569f5a 100755 --- a/examples/Dfp/v201502/CreativeService/UpdateCreatives.php +++ b/examples/Dfp/v201502/CreativeService/UpdateCreatives.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative to update. diff --git a/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php b/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php index d97bea620..15bf2a8a5 100755 --- a/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php +++ b/examples/Dfp/v201502/CreativeSetService/GetAllCreativesSets.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php b/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php index ca1ba7200..df2859a54 100755 --- a/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php +++ b/examples/Dfp/v201502/CreativeSetService/GetCreativeSetsForMasterCreative.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the master creative to get all creative sets for. diff --git a/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php b/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php index 070aaf6b3..303d0f50b 100755 --- a/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php +++ b/examples/Dfp/v201502/CreativeSetService/UpdateCreativeSet.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative set to update. diff --git a/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php b/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php index c29c2856c..11046d17b 100755 --- a/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php +++ b/examples/Dfp/v201502/CreativeTemplateService/GetAllCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php b/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php index cba827a63..bbfb27d65 100755 --- a/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php +++ b/examples/Dfp/v201502/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php b/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php index 0294fe6ae..65f4d2d74 100755 --- a/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php +++ b/examples/Dfp/v201502/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper label to deactivate. diff --git a/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php b/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php index 05808f349..292ed180e 100755 --- a/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php +++ b/examples/Dfp/v201502/CreativeWrapperService/GetActiveCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php b/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php index 980276a82..1b21376a4 100755 --- a/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php +++ b/examples/Dfp/v201502/CreativeWrapperService/GetAllCreativeWrappers.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php b/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php index 3803e57ce..e29d37eff 100755 --- a/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php +++ b/examples/Dfp/v201502/CreativeWrapperService/UpdateCreativeWrappers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the creative wrapper to update. diff --git a/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php b/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php index e256ba814..52718a19c 100755 --- a/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php +++ b/examples/Dfp/v201502/CustomFieldService/DeactivateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to deactivate. diff --git a/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php b/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php index 56ef4230e..932014ef5 100755 --- a/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php +++ b/examples/Dfp/v201502/CustomFieldService/GetAllCustomFields.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php b/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php index 320e5b3e7..97dc510a3 100755 --- a/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php +++ b/examples/Dfp/v201502/CustomFieldService/GetCustomFieldsForLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php b/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php index 4a040961d..bf2293a81 100755 --- a/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php +++ b/examples/Dfp/v201502/CustomFieldService/UpdateCustomFields.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom field to update. diff --git a/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php index a29b03bc5..c4c6a792e 100755 --- a/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php +++ b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingKeys.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to delete. diff --git a/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php index f7a85a4f0..e7bff7d3a 100755 --- a/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php +++ b/examples/Dfp/v201502/CustomTargetingService/DeleteCustomTargetingValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to delete. diff --git a/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php b/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php index aa8a39f55..0bf88dffd 100755 --- a/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201502/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php b/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php index d3ec92b39..85e5d7ad4 100755 --- a/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php +++ b/examples/Dfp/v201502/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php index e3cfe7137..f0c2ec4ec 100755 --- a/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php +++ b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingKeys.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting key to update. diff --git a/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php index 0c5e5629a..0dfb56bfb 100755 --- a/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php +++ b/examples/Dfp/v201502/CustomTargetingService/UpdateCustomTargetingValues.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the custom targeting value to update. diff --git a/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php b/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php index fcac18f02..32eb134dc 100755 --- a/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php +++ b/examples/Dfp/v201502/ExchangeRateService/GetAllExchangeRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php b/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php index 45f2e922d..51c211fa7 100755 --- a/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php +++ b/examples/Dfp/v201502/ExchangeRateService/GetExchangeRatesForCurrencyCode.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the currency code to filter on here. diff --git a/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php b/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php index cab144ef4..092029f49 100755 --- a/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php +++ b/examples/Dfp/v201502/ExchangeRateService/UpdateExchangeRates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the exchange rate to update. diff --git a/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php index 01d3e480b..b7f8af0d9 100755 --- a/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php +++ b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecast.php @@ -42,7 +42,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php index ec1f9b7c0..fb310cf10 100755 --- a/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php +++ b/examples/Dfp/v201502/ForecastService/GetAvailabilityForecastForLineItem.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to get a forecast for. diff --git a/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php b/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php index 0f07d84f5..a67661433 100755 --- a/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php +++ b/examples/Dfp/v201502/ForecastService/GetDeliveryForecastForLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the IDs of the line items to get a forecast for. diff --git a/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php b/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php index 63b5eae0d..90b807d1a 100755 --- a/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php +++ b/examples/Dfp/v201502/InventoryService/ArchiveAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to archive underneath. diff --git a/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php b/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php index c99841445..ec54e8c0a 100755 --- a/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php +++ b/examples/Dfp/v201502/InventoryService/AssignAdUnitsToPlacement.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ad unit ID to add to the placement. diff --git a/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php b/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php index f0aa6685e..cea2ad715 100755 --- a/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php +++ b/examples/Dfp/v201502/InventoryService/GetAllAdUnitSizes.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php b/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php index 73faa6e9d..cb1c48fc7 100755 --- a/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php +++ b/examples/Dfp/v201502/InventoryService/GetAllAdUnits.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php b/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php index 9177e4346..bf9f23a96 100755 --- a/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php +++ b/examples/Dfp/v201502/InventoryService/GetTopLevelAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php b/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php index 68ec92dc8..d8d39eb3f 100755 --- a/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php +++ b/examples/Dfp/v201502/InventoryService/UpdateAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the ad unit to update. diff --git a/examples/Dfp/v201502/LabelService/DeactivateLabels.php b/examples/Dfp/v201502/LabelService/DeactivateLabels.php index c127229f1..67e01ca3d 100755 --- a/examples/Dfp/v201502/LabelService/DeactivateLabels.php +++ b/examples/Dfp/v201502/LabelService/DeactivateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to deactivate. diff --git a/examples/Dfp/v201502/LabelService/GetActiveLabels.php b/examples/Dfp/v201502/LabelService/GetActiveLabels.php index 2b979bebb..6e6600a05 100755 --- a/examples/Dfp/v201502/LabelService/GetActiveLabels.php +++ b/examples/Dfp/v201502/LabelService/GetActiveLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LabelService/GetAllLabels.php b/examples/Dfp/v201502/LabelService/GetAllLabels.php index dcf59ddf9..ae301d279 100755 --- a/examples/Dfp/v201502/LabelService/GetAllLabels.php +++ b/examples/Dfp/v201502/LabelService/GetAllLabels.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LabelService/UpdateLabels.php b/examples/Dfp/v201502/LabelService/UpdateLabels.php index a7936cb10..302b5c1b9 100755 --- a/examples/Dfp/v201502/LabelService/UpdateLabels.php +++ b/examples/Dfp/v201502/LabelService/UpdateLabels.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the label to update. diff --git a/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php index dc41479b8..4cb332ab5 100755 --- a/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/DeactivateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to deactivate LICAs for. diff --git a/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php index cedbec15a..7ef65d759 100755 --- a/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetAllLicas.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php index de35bb599..4822baf9e 100755 --- a/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/GetLicasForLineItem.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to fetch all LICAs for. diff --git a/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php b/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php index e7bc6f64a..e520a894c 100755 --- a/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php +++ b/examples/Dfp/v201502/LineItemCreativeAssociationService/UpdateLicas.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the line item ID of the LICA to update. diff --git a/examples/Dfp/v201502/LineItemService/CreateLineItems.php b/examples/Dfp/v201502/LineItemService/CreateLineItems.php index dce9da8c4..b417cdd88 100755 --- a/examples/Dfp/v201502/LineItemService/CreateLineItems.php +++ b/examples/Dfp/v201502/LineItemService/CreateLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php b/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php index 731379c47..f7eff500c 100755 --- a/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php +++ b/examples/Dfp/v201502/LineItemService/CreateVideoLineItems.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order that the line item will belong to. diff --git a/examples/Dfp/v201502/LineItemService/GetAllLineItems.php b/examples/Dfp/v201502/LineItemService/GetAllLineItems.php index 2bcad9389..2cdfc6a84 100755 --- a/examples/Dfp/v201502/LineItemService/GetAllLineItems.php +++ b/examples/Dfp/v201502/LineItemService/GetAllLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php b/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php index 42f2712cf..af0f20a49 100755 --- a/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php +++ b/examples/Dfp/v201502/LineItemService/GetLineItemsThatNeedCreatives.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php b/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php index ac403e582..984b7376a 100755 --- a/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php +++ b/examples/Dfp/v201502/LineItemService/GetRecentlyUpdatedLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/LineItemService/PauseLineItems.php b/examples/Dfp/v201502/LineItemService/PauseLineItems.php index 1398ed8ad..504d3a606 100755 --- a/examples/Dfp/v201502/LineItemService/PauseLineItems.php +++ b/examples/Dfp/v201502/LineItemService/PauseLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to pause. diff --git a/examples/Dfp/v201502/LineItemService/UpdateLineItems.php b/examples/Dfp/v201502/LineItemService/UpdateLineItems.php index ac1e6515d..2df722006 100755 --- a/examples/Dfp/v201502/LineItemService/UpdateLineItems.php +++ b/examples/Dfp/v201502/LineItemService/UpdateLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the line item to update. diff --git a/examples/Dfp/v201502/OrderService/ApproveOrders.php b/examples/Dfp/v201502/OrderService/ApproveOrders.php index 0acc72fd1..ee645c56f 100755 --- a/examples/Dfp/v201502/OrderService/ApproveOrders.php +++ b/examples/Dfp/v201502/OrderService/ApproveOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to approve. diff --git a/examples/Dfp/v201502/OrderService/GetAllOrders.php b/examples/Dfp/v201502/OrderService/GetAllOrders.php index 39278eb68..9358c6d46 100755 --- a/examples/Dfp/v201502/OrderService/GetAllOrders.php +++ b/examples/Dfp/v201502/OrderService/GetAllOrders.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php b/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php index eb7cf071f..da0e05cef 100755 --- a/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php +++ b/examples/Dfp/v201502/OrderService/GetOrdersStartingSoon.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/OrderService/UpdateOrders.php b/examples/Dfp/v201502/OrderService/UpdateOrders.php index 817a429d3..0092c6e05 100755 --- a/examples/Dfp/v201502/OrderService/UpdateOrders.php +++ b/examples/Dfp/v201502/OrderService/UpdateOrders.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to update. diff --git a/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php b/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php index 5f8a65f43..44397dcaf 100755 --- a/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php +++ b/examples/Dfp/v201502/PlacementService/DeactivatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to deactivate. diff --git a/examples/Dfp/v201502/PlacementService/GetActivePlacements.php b/examples/Dfp/v201502/PlacementService/GetActivePlacements.php index 79cb65d69..59003be5d 100755 --- a/examples/Dfp/v201502/PlacementService/GetActivePlacements.php +++ b/examples/Dfp/v201502/PlacementService/GetActivePlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PlacementService/GetAllPlacements.php b/examples/Dfp/v201502/PlacementService/GetAllPlacements.php index 628d3e617..e5d5f9fe2 100755 --- a/examples/Dfp/v201502/PlacementService/GetAllPlacements.php +++ b/examples/Dfp/v201502/PlacementService/GetAllPlacements.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PlacementService/UpdatePlacements.php b/examples/Dfp/v201502/PlacementService/UpdatePlacements.php index 091c6af20..86d3cbf65 100755 --- a/examples/Dfp/v201502/PlacementService/UpdatePlacements.php +++ b/examples/Dfp/v201502/PlacementService/UpdatePlacements.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the placement to update. diff --git a/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php b/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php index 799ef5041..1c93d6434 100755 --- a/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php +++ b/examples/Dfp/v201502/PremiumRateService/GetAllPremiumRates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php b/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php index d82ee944f..98a2ed8b2 100755 --- a/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php +++ b/examples/Dfp/v201502/PremiumRateService/GetPremiumRatesForRateCard.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the rate card to get premium rates for. diff --git a/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php b/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php index 33d80b5a1..e4132f08e 100755 --- a/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php +++ b/examples/Dfp/v201502/PremiumRateService/UpdatePremiumRates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the premium rate to update. diff --git a/examples/Dfp/v201502/ProductService/GetAllProducts.php b/examples/Dfp/v201502/ProductService/GetAllProducts.php index ee510bd25..e54feb01e 100755 --- a/examples/Dfp/v201502/ProductService/GetAllProducts.php +++ b/examples/Dfp/v201502/ProductService/GetAllProducts.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php b/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php index ec423f3d0..19bdda3c2 100755 --- a/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php +++ b/examples/Dfp/v201502/ProductService/GetProductsForProductTemplate.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to filter products by. diff --git a/examples/Dfp/v201502/ProductService/UpdateProducts.php b/examples/Dfp/v201502/ProductService/UpdateProducts.php index e11eef7b9..9ca3c0029 100755 --- a/examples/Dfp/v201502/ProductService/UpdateProducts.php +++ b/examples/Dfp/v201502/ProductService/UpdateProducts.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product to update. diff --git a/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php index ba5ce8d13..e232e7f89 100755 --- a/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php +++ b/examples/Dfp/v201502/ProductTemplateService/ActivateProductTemplates.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to activate. diff --git a/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php index 5d72ead19..f0639f6d2 100755 --- a/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php +++ b/examples/Dfp/v201502/ProductTemplateService/GetAllProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php index d54c0b705..a0c70fdf3 100755 --- a/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php +++ b/examples/Dfp/v201502/ProductTemplateService/GetSponsorshipProductTemplates.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php b/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php index bcb8eb885..6dc94974b 100755 --- a/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php +++ b/examples/Dfp/v201502/ProductTemplateService/UpdateProductTemplates.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the product template to update. diff --git a/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php index f69b864cf..a33177f14 100755 --- a/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php +++ b/examples/Dfp/v201502/ProposalLineItemService/ArchiveProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to archive. diff --git a/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php index aaae39f85..01a426fd0 100755 --- a/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php +++ b/examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php @@ -40,7 +40,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal that the proposal line items will belong to. diff --git a/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php index 40de9d2cc..dc17b3ed1 100755 --- a/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php +++ b/examples/Dfp/v201502/ProposalLineItemService/GetAllProposalLineItems.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php b/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php index 4308d6b3e..ebc3ff056 100755 --- a/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php +++ b/examples/Dfp/v201502/ProposalLineItemService/GetProposalLineItemsForProposal.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to filter proposal line items on. diff --git a/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php b/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php index 3eca3b7d1..2b3c1d5a8 100755 --- a/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php +++ b/examples/Dfp/v201502/ProposalLineItemService/UpdateProposalLineItems.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal line item to update. diff --git a/examples/Dfp/v201502/ProposalService/GetAllProposals.php b/examples/Dfp/v201502/ProposalService/GetAllProposals.php index 5dec10c8d..d19f28ea1 100755 --- a/examples/Dfp/v201502/ProposalService/GetAllProposals.php +++ b/examples/Dfp/v201502/ProposalService/GetAllProposals.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php b/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php index 0035278cc..5bdac7fe0 100755 --- a/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php +++ b/examples/Dfp/v201502/ProposalService/GetProposalsPendingApproval.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php b/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php index 507e60abc..51156eddf 100755 --- a/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php +++ b/examples/Dfp/v201502/ProposalService/SubmitProposalsForApproval.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to submit for approval. diff --git a/examples/Dfp/v201502/ProposalService/UpdateProposals.php b/examples/Dfp/v201502/ProposalService/UpdateProposals.php index 64d715545..5265db302 100755 --- a/examples/Dfp/v201502/ProposalService/UpdateProposals.php +++ b/examples/Dfp/v201502/ProposalService/UpdateProposals.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to update. diff --git a/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php index be8bb43b1..ec5167585 100755 --- a/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/FetchMatchTables.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php index 4b79d8dcf..d09859e32 100755 --- a/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetAllBrowsers.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php index fba49c234..a6f0c54b3 100755 --- a/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetGeoTargets.php @@ -46,8 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php index a7227744f..5c1aa0327 100755 --- a/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php +++ b/examples/Dfp/v201502/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -44,8 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/RateCardService/GetAllRateCards.php b/examples/Dfp/v201502/RateCardService/GetAllRateCards.php index ef35c61c7..de8fbfe6b 100755 --- a/examples/Dfp/v201502/RateCardService/GetAllRateCards.php +++ b/examples/Dfp/v201502/RateCardService/GetAllRateCards.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php b/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php index 7603b1c2a..e389c9ea5 100755 --- a/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php +++ b/examples/Dfp/v201502/RateCardService/GetUsdRateCards.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php b/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php index 08839c5ce..02b0d7444 100755 --- a/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php +++ b/examples/Dfp/v201502/ReportService/RunDeliveryReportForOrder.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the order to run the report for. diff --git a/examples/Dfp/v201502/ReportService/RunInventoryReport.php b/examples/Dfp/v201502/ReportService/RunInventoryReport.php index d16e1e740..c1df8ddde 100755 --- a/examples/Dfp/v201502/ReportService/RunInventoryReport.php +++ b/examples/Dfp/v201502/ReportService/RunInventoryReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -62,8 +62,8 @@ // Create statement to filter on a parent ad unit with the root ad unit ID to // include all ad units in the network. $statementBuilder = new StatementBuilder(); - $statementBuilder->Where('PARENT_AD_UNIT_ID = - :parentAdUnitId')->WithBindVariableValue('parentAdUnitId', $rootAdUnitId); + $statementBuilder->Where('PARENT_AD_UNIT_ID = :parentAdUnitId') + ->WithBindVariableValue('parentAdUnitId', intval($rootAdUnitId)); // Create report query. $reportQuery = new ReportQuery(); diff --git a/examples/Dfp/v201502/ReportService/RunReachReport.php b/examples/Dfp/v201502/ReportService/RunReachReport.php index 713e27a82..0dc248235 100755 --- a/examples/Dfp/v201502/ReportService/RunReachReport.php +++ b/examples/Dfp/v201502/ReportService/RunReachReport.php @@ -37,8 +37,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php b/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php index 1c6c6909e..45b23726e 100755 --- a/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php +++ b/examples/Dfp/v201502/ReportService/RunReportWithCustomFields.php @@ -38,8 +38,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/ReportDownloader.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php b/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php index 8f26675cc..6ac3346dc 100755 --- a/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php +++ b/examples/Dfp/v201502/SuggestedAdUnitService/ApproveSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php b/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php index d9f865be4..48c87f398 100755 --- a/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php +++ b/examples/Dfp/v201502/SuggestedAdUnitService/GetAllSuggestedAdUnits.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php b/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php index e70acee01..49f13fa59 100755 --- a/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php +++ b/examples/Dfp/v201502/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the number of requests for suggested ad units greater than which to diff --git a/examples/Dfp/v201502/TeamService/GetAllTeams.php b/examples/Dfp/v201502/TeamService/GetAllTeams.php index 1d1eac9d8..3b0c0dbaa 100755 --- a/examples/Dfp/v201502/TeamService/GetAllTeams.php +++ b/examples/Dfp/v201502/TeamService/GetAllTeams.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/TeamService/UpdateTeams.php b/examples/Dfp/v201502/TeamService/UpdateTeams.php index 15b6e85c9..0826df5f7 100755 --- a/examples/Dfp/v201502/TeamService/UpdateTeams.php +++ b/examples/Dfp/v201502/TeamService/UpdateTeams.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the team to update. diff --git a/examples/Dfp/v201502/UserService/DeactivateUsers.php b/examples/Dfp/v201502/UserService/DeactivateUsers.php index d9f488020..1f151d84d 100755 --- a/examples/Dfp/v201502/UserService/DeactivateUsers.php +++ b/examples/Dfp/v201502/UserService/DeactivateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to deactivate. diff --git a/examples/Dfp/v201502/UserService/GetAllUsers.php b/examples/Dfp/v201502/UserService/GetAllUsers.php index 2761167bd..ad0578a73 100755 --- a/examples/Dfp/v201502/UserService/GetAllUsers.php +++ b/examples/Dfp/v201502/UserService/GetAllUsers.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php b/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php index f390bd0e3..33d1b4c19 100755 --- a/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php +++ b/examples/Dfp/v201502/UserService/GetUsersByEmailAddress.php @@ -37,7 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the email address of the user to select. diff --git a/examples/Dfp/v201502/UserService/UpdateUsers.php b/examples/Dfp/v201502/UserService/UpdateUsers.php index 69b412fa4..9f6b2075f 100755 --- a/examples/Dfp/v201502/UserService/UpdateUsers.php +++ b/examples/Dfp/v201502/UserService/UpdateUsers.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to update. diff --git a/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php b/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php index eb1bd3616..0bef52eb9 100755 --- a/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/DeleteUserTeamAssociations.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to delete user team associations for. diff --git a/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php b/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php index 95db3d396..c82cfbea7 100755 --- a/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/GetAllUserTeamAssociations.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php b/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php index e1c7fe77c..ea1e3a8c8 100755 --- a/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/GetUserTeamAssociationsForUser.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the user to fetch all user team associations for. diff --git a/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php b/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php index 0f7fc88da..e1fd6e59f 100755 --- a/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php +++ b/examples/Dfp/v201502/UserTeamAssociationService/UpdateUserTeamAssociations.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the user ID of the user team association to update. diff --git a/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php b/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php index 7b8005284..f0b33b02c 100755 --- a/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php +++ b/examples/Dfp/v201502/WorkflowRequestService/ApproveWorkflowApprovalRequests.php @@ -39,7 +39,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to approve workflow approval requests for. diff --git a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php index 60dfde3b0..cbcf05e3d 100755 --- a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php +++ b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowApprovalRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php index c2639a14b..b0a9951fd 100755 --- a/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201502/WorkflowRequestService/GetWorkflowExternalConditionRequests.php @@ -38,7 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { diff --git a/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php b/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php index 6328cb7f8..efa628874 100755 --- a/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php +++ b/examples/Dfp/v201502/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php @@ -41,7 +41,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/StatementBuilder.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; // Set the ID of the proposal to trigger workflow external conditions for. diff --git a/examples/Dfp/v201405/ActivityGroupService/CreateActivityGroups.php b/examples/Dfp/v201505/ActivityGroupService/CreateActivityGroups.php similarity index 98% rename from examples/Dfp/v201405/ActivityGroupService/CreateActivityGroups.php rename to examples/Dfp/v201505/ActivityGroupService/CreateActivityGroups.php index 60461e4ff..9ea317684 100755 --- a/examples/Dfp/v201405/ActivityGroupService/CreateActivityGroups.php +++ b/examples/Dfp/v201505/ActivityGroupService/CreateActivityGroups.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201405'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201505'); // Set the ID of the advertiser company this activity group is associated // with. diff --git a/examples/Dfp/v201405/ActivityGroupService/GetActiveActivityGroups.php b/examples/Dfp/v201505/ActivityGroupService/GetActiveActivityGroups.php similarity index 68% rename from examples/Dfp/v201405/ActivityGroupService/GetActiveActivityGroups.php rename to examples/Dfp/v201505/ActivityGroupService/GetActiveActivityGroups.php index 2fd6f2245..564515915 100755 --- a/examples/Dfp/v201405/ActivityGroupService/GetActiveActivityGroups.php +++ b/examples/Dfp/v201505/ActivityGroupService/GetActiveActivityGroups.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201405'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201505'); - // 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; + // Create a statement to select only active activity groups. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); - $page = new ActivityGroupPage(); + // Default for total result set size. + $totalResultSetSize = 0; 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)); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activityGroup) { - printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ActivityGroupService/GetAllActivityGroups.php b/examples/Dfp/v201505/ActivityGroupService/GetAllActivityGroups.php similarity index 71% rename from examples/Dfp/v201405/ActivityGroupService/GetAllActivityGroups.php rename to examples/Dfp/v201505/ActivityGroupService/GetAllActivityGroups.php index 6cebfe513..8f4128da4 100755 --- a/examples/Dfp/v201405/ActivityGroupService/GetAllActivityGroups.php +++ b/examples/Dfp/v201505/ActivityGroupService/GetAllActivityGroups.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -22,9 +22,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -38,6 +38,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -49,33 +50,35 @@ $user->LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201405'); + $activityGroupService = $user->GetService('ActivityGroupService', 'v201505'); - // 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; + // Create a statement to select all activity groups. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ActivityGroupPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activity groups by statement. - $page = $activityGroupService->getActivityGroupsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $activityGroup) { - printf("%d) Activity group with ID \"%d\" and name \"%s\" was found.\n", + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ActivityGroupService/UpdateActivityGroups.php b/examples/Dfp/v201505/ActivityGroupService/UpdateActivityGroups.php similarity index 73% rename from examples/Dfp/v201405/ActivityGroupService/UpdateActivityGroups.php rename to examples/Dfp/v201505/ActivityGroupService/UpdateActivityGroups.php index 9e674143f..6c19ee723 100755 --- a/examples/Dfp/v201405/ActivityGroupService/UpdateActivityGroups.php +++ b/examples/Dfp/v201505/ActivityGroupService/UpdateActivityGroups.php @@ -1,6 +1,6 @@ LogDefaults(); // Get the ActivityGroupService. - $activityGroupService = $user->GetService('ActivityGroupService', 'v201405'); - - // 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'; + $activityGroupService = $user->GetService('ActivityGroupService', 'v201505'); // Create a statement to select a single activity group by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($activityGroupId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $activityGroupId); // Get the activity group. - $page = $activityGroupService->getActivityGroupsByStatement($filterStatement); + $page = $activityGroupService->getActivityGroupsByStatement( + $statementBuilder->ToStatement()); $activityGroup = $page->results[0]; // Update the companies. @@ -73,9 +78,8 @@ $activityGroups = $activityGroupService->updateActivityGroups(array($activityGroup)); - // Display results. foreach ($activityGroups as $updatedActivityGroup) { - printf("Activity group with ID '%d' and name '%s' was updated.\n", + printf("Activity group with ID %d, and name '%s' was updated.\n", $updatedActivityGroup->id, $updatedActivityGroup->name); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201405/ActivityService/CreateActivities.php b/examples/Dfp/v201505/ActivityService/CreateActivities.php similarity index 97% rename from examples/Dfp/v201405/ActivityService/CreateActivities.php rename to examples/Dfp/v201505/ActivityService/CreateActivities.php index 27b97dd1b..796296e3c 100755 --- a/examples/Dfp/v201405/ActivityService/CreateActivities.php +++ b/examples/Dfp/v201505/ActivityService/CreateActivities.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201405'); + $activityService = $user->GetService('ActivityService', 'v201505'); // Set the ID of the activity group this activity is associated with. $activityGroupId = 'INSERT_ACTIVITY_GROUP_ID_HERE'; diff --git a/examples/Dfp/v201405/ActivityService/GetActiveActivities.php b/examples/Dfp/v201505/ActivityService/GetActiveActivities.php similarity index 62% rename from examples/Dfp/v201405/ActivityService/GetActiveActivities.php rename to examples/Dfp/v201505/ActivityService/GetActiveActivities.php index 3de26bfd6..3dca7394e 100755 --- a/examples/Dfp/v201405/ActivityService/GetActiveActivities.php +++ b/examples/Dfp/v201505/ActivityService/GetActiveActivities.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201405'); + $activityService = $user->GetService('ActivityService', 'v201505'); - // 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; + // Create a statement to select only active activities. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); - $page = new ActivityPage(); + // Default for total result set size. + $totalResultSetSize = 0; 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)); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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); + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ActivityService/GetAllActivities.php b/examples/Dfp/v201505/ActivityService/GetAllActivities.php similarity index 65% rename from examples/Dfp/v201405/ActivityService/GetAllActivities.php rename to examples/Dfp/v201505/ActivityService/GetAllActivities.php index d0a7af290..55065d270 100755 --- a/examples/Dfp/v201405/ActivityService/GetAllActivities.php +++ b/examples/Dfp/v201505/ActivityService/GetAllActivities.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -22,9 +22,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -37,8 +37,8 @@ $path = dirname(__FILE__) . '/../../../../src'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); -require_once 'Google/Api/Ads/Common/Util/MapUtils.php'; require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -50,34 +50,35 @@ $user->LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201405'); + $activityService = $user->GetService('ActivityService', 'v201505'); - // 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; + // Create a statement to select all activities. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ActivityPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get activities by statement. - $page = $activityService->getActivitiesByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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); + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ActivityService/UpdateActivities.php b/examples/Dfp/v201505/ActivityService/UpdateActivities.php similarity index 71% rename from examples/Dfp/v201405/ActivityService/UpdateActivities.php rename to examples/Dfp/v201505/ActivityService/UpdateActivities.php index d2e8c37ce..3806c862d 100755 --- a/examples/Dfp/v201405/ActivityService/UpdateActivities.php +++ b/examples/Dfp/v201505/ActivityService/UpdateActivities.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the ActivityService. - $activityService = $user->GetService('ActivityService', 'v201405'); - - // Set the ID of the activity to update. - $activityId = 'INSERT_ACTIVITY_ID_HERE'; + $activityService = $user->GetService('ActivityService', 'v201505'); // Create a statement to select a single activity by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($activityId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $activityId); // Get the activity. - $page = $activityService->getActivitiesByStatement($filterStatement); + $page = $activityService->getActivitiesByStatement( + $statementBuilder->ToStatement()); $activity = $page->results[0]; // Update the expected URL. - $activity->expectedURL = 'https://google.com'; + $activity->expectedUrl = 'https://www.google.com'; // Update the activity on the server. $activities = $activityService->updateActivities(array($activity)); foreach ($activities as $updatedActivity) { - printf("Activity with ID '%d' and name '%s' was updated.\n", + printf("Activity with ID %d, and name '%s' was updated.\n", $updatedActivity->id, $updatedActivity->name); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201405/AudienceSegmentService/CreateAudienceSegments.php b/examples/Dfp/v201505/AudienceSegmentService/CreateAudienceSegments.php similarity index 96% rename from examples/Dfp/v201405/AudienceSegmentService/CreateAudienceSegments.php rename to examples/Dfp/v201505/AudienceSegmentService/CreateAudienceSegments.php index 522958cff..2ce671719 100755 --- a/examples/Dfp/v201405/AudienceSegmentService/CreateAudienceSegments.php +++ b/examples/Dfp/v201505/AudienceSegmentService/CreateAudienceSegments.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -50,10 +50,10 @@ // Get the AudienceSegmentService. $audienceSegmentService = - $user->GetService('AudienceSegmentService', 'v201405'); + $user->GetService('AudienceSegmentService', 'v201505'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Set the IDs of the custom criteria to be used in the segment rule. $customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; diff --git a/examples/Dfp/v201405/AudienceSegmentService/GetAllAudienceSegments.php b/examples/Dfp/v201505/AudienceSegmentService/GetAllAudienceSegments.php similarity index 67% rename from examples/Dfp/v201405/AudienceSegmentService/GetAllAudienceSegments.php rename to examples/Dfp/v201505/AudienceSegmentService/GetAllAudienceSegments.php index 0f4dba6be..530a0d5e8 100755 --- a/examples/Dfp/v201405/AudienceSegmentService/GetAllAudienceSegments.php +++ b/examples/Dfp/v201505/AudienceSegmentService/GetAllAudienceSegments.php @@ -1,13 +1,13 @@ GetService('AudienceSegmentService', - 'v201405'); + 'v201505'); - // 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; + // Create a statement to select all audience segments. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new AudienceSegmentPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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); + printf("%d) Audience segment with ID %d, name '%s', and size %s was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name, + $audienceSegment->size); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/AudienceSegmentService/GetFirstPartyAudienceSegments.php b/examples/Dfp/v201505/AudienceSegmentService/GetFirstPartyAudienceSegments.php similarity index 66% rename from examples/Dfp/v201405/AudienceSegmentService/GetFirstPartyAudienceSegments.php rename to examples/Dfp/v201505/AudienceSegmentService/GetFirstPartyAudienceSegments.php index 70357a7ab..11a1503a1 100755 --- a/examples/Dfp/v201405/AudienceSegmentService/GetFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201505/AudienceSegmentService/GetFirstPartyAudienceSegments.php @@ -1,13 +1,13 @@ GetService('AudienceSegmentService', - 'v201405'); + 'v201505'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('FIRST_PARTY'))); + // Create a statement to select only first party audience segments. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', '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(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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, + printf("%d) Audience segment with ID %d, name '%s', and size %s was " + . "found.\n", $i++, $audienceSegment->id, $audienceSegment->name, $audienceSegment->size); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php b/examples/Dfp/v201505/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php similarity index 62% rename from examples/Dfp/v201405/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php rename to examples/Dfp/v201505/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php index 20bcc0335..b814a3f8b 100755 --- a/examples/Dfp/v201405/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php +++ b/examples/Dfp/v201505/AudienceSegmentService/PopulateFirstPartyAudienceSegments.php @@ -1,14 +1,14 @@ GetService('AudienceSegmentService', 'v201405'); - - $audienceSegmentId = 'INSERT_AUDIENCE_SEGMENT_ID_HERE'; - - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('FIRST_PARTY'), - 'audienceSegmentId' => new NumberValue($audienceSegmentId))); + $user->GetService('AudienceSegmentService', 'v201505'); - // 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; + // Create a statement to only select a specified first party audience + // segment. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and type = :type') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $audienceSegmentId) + ->WithBindVariableValue('type', 'FIRST_PARTY'); - $page = new AudienceSegmentPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get audience segments by statement. $page = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement(sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset), - $vars)); + $statementBuilder->ToStatement()); // Display results. - $audienceSegmentIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $audienceSegment) { - printf("%d) Audience segment with ID \"%d\" and name \"%s\" will be " + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of audience segments to be populated: %d\n", - sizeof($audienceSegmentIds)); + $totalResultSetSize); - if (sizeof($audienceSegmentIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', - implode(',', $audienceSegmentIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new PopulateAudienceSegments(); // Perform action. $result = $audienceSegmentService->performAudienceSegmentAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { diff --git a/examples/Dfp/v201405/AudienceSegmentService/UpdateAudienceSegments.php b/examples/Dfp/v201505/AudienceSegmentService/UpdateAudienceSegments.php similarity index 61% rename from examples/Dfp/v201405/AudienceSegmentService/UpdateAudienceSegments.php rename to examples/Dfp/v201505/AudienceSegmentService/UpdateAudienceSegments.php index 72883dbbb..566af719e 100755 --- a/examples/Dfp/v201405/AudienceSegmentService/UpdateAudienceSegments.php +++ b/examples/Dfp/v201505/AudienceSegmentService/UpdateAudienceSegments.php @@ -1,15 +1,15 @@ LogDefaults(); // Get the AudienceSegmentService. - $audienceSegmentService = $user->GetService('AudienceSegmentService', - 'v201405'); - - // 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))); + $audienceSegmentService = + $user->GetService('AudienceSegmentService', 'v201505'); - // Create statement text to select the audience segment to update. - $filterStatementText = "WHERE id = :audienceSegmentId LIMIT 1"; + // Create a statement to select a single first party audience segment by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and type = :type') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $audienceSegmentId) + ->WithBindVariableValue('type', 'FIRST_PARTY'); // Get the audience segment. - $audienceSegment = $audienceSegmentService->getAudienceSegmentsByStatement( - new Statement($filterStatementText, $vars))->results[0]; + $page = $audienceSegmentService->getAudienceSegmentsByStatement( + $statementBuilder->ToStatement()); + $audienceSegment = $page->results[0]; // Update the member expiration days. $audienceSegment->membershipExpirationDays = 180; @@ -75,14 +78,9 @@ $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"); + foreach ($audienceSegments as $updatedAudienceSegment) { + printf("Audience segment with ID %d, and name '%s' was updated.\n", + $updatedAudienceSegment->id, $updatedAudienceSegment->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201505/BaseRateService/CreateProductBaseRates.php b/examples/Dfp/v201505/BaseRateService/CreateProductBaseRates.php new file mode 100755 index 000000000..e707c75a4 --- /dev/null +++ b/examples/Dfp/v201505/BaseRateService/CreateProductBaseRates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201505'); + + // Create a base rate for a product. + $productBaseRate = new ProductBaseRate(); + + // Set the rate card ID that the product base rate belongs to. + $productBaseRate->rateCardId = $rateCardId; + + // Set the product the base rate will be applied to. + $productBaseRate->productId = $productId; + + // Create a rate worth $2 and set that on the product base rate. + $rate = new Money(); + $rate->currencyCode = 'USD'; + $rate->microAmount = 2000000; + $productBaseRate->rate = $rate; + + // Create the product base rate on the server. + $baseRates = $baseRateService->createBaseRates(array($productBaseRate)); + + foreach ($baseRates as $createdBaseRate) { + printf("A product base rate with ID %d and rate %.2f %s was created.\n", + $createdBaseRate->id, + $createdBaseRate->rate->microAmount / 1000000, + $createdBaseRate->rate->currencyCode + ); + } +} 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/v201505/BaseRateService/CreateProductTemplateBaseRates.php b/examples/Dfp/v201505/BaseRateService/CreateProductTemplateBaseRates.php new file mode 100755 index 000000000..7dc282999 --- /dev/null +++ b/examples/Dfp/v201505/BaseRateService/CreateProductTemplateBaseRates.php @@ -0,0 +1,94 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201505'); + + // Create a base rate for a product template. + $productTemplateBaseRate = new ProductTemplateBaseRate(); + + // Set the rate card ID that the product template base rate belongs to. + $productTemplateBaseRate->rateCardId = $rateCardId; + + // Set the product template the base rate will be applied to. + $productTemplateBaseRate->productTemplateId = $productTemplateId; + + // Create a rate worth $2 and set that on the product template base rate. + $rate = new Money(); + $rate->currencyCode = 'USD'; + $rate->microAmount = 2000000; + $productTemplateBaseRate->rate = $rate; + + // Create the product template base rate on the server. + $baseRates = + $baseRateService->createBaseRates(array($productTemplateBaseRate)); + + foreach ($baseRates as $createdBaseRate) { + printf("A product template base rate with ID %d and rate %.2f %s was " + . "created.\n", + $createdBaseRate->id, + $createdBaseRate->rate->microAmount / 1000000, + $createdBaseRate->rate->currencyCode + ); + } +} 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/v201505/BaseRateService/GetAllBaseRates.php b/examples/Dfp/v201505/BaseRateService/GetAllBaseRates.php new file mode 100755 index 000000000..b90fa63aa --- /dev/null +++ b/examples/Dfp/v201505/BaseRateService/GetAllBaseRates.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201505'); + + // Create a statement to select all base rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get base rates by statement. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $baseRate) { + printf("%d) Base rate with ID %d and type '%s', belonging to rate card " + . "ID %d was found.\n", $i++, $baseRate->id, + get_class($baseRate), $baseRate->rateCardId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/BaseRateService/GetBaseRatesForRateCard.php b/examples/Dfp/v201505/BaseRateService/GetBaseRatesForRateCard.php new file mode 100755 index 000000000..f83acdfad --- /dev/null +++ b/examples/Dfp/v201505/BaseRateService/GetBaseRatesForRateCard.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201505'); + + // Create a statement to select only base rates belonging to a rate card. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('rateCardId = :rateCardId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('rateCardId', $rateCardId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get base rates by statement. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $baseRate) { + printf("%d) Base rate with ID %d, and type '%s', belonging to rate " + . "card ID %d was found.\n", + $i++, + $baseRate->id, + get_class($baseRate), + $baseRate->rateCardId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/BaseRateService/UpdateBaseRates.php b/examples/Dfp/v201505/BaseRateService/UpdateBaseRates.php new file mode 100755 index 000000000..866028a1a --- /dev/null +++ b/examples/Dfp/v201505/BaseRateService/UpdateBaseRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the BaseRateService. + $baseRateService = $user->GetService('BaseRateService', 'v201505'); + + // Create a statement to select a single base rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $baseRateId); + + // Get the base rate. + $page = $baseRateService->getBaseRatesByStatement( + $statementBuilder->ToStatement()); + $baseRate = $page->results[0]; + + // Update base rate value to $3 USD. + $newRate = new Money(); + $newRate->currencyCode = 'USD'; + $newRate->microAmount = 3000000; + $baseRate->rate = $newRate; + + // Update the base rate on the server. + $baseRates = $baseRateService->updateBaseRates(array($baseRate)); + + foreach ($baseRates as $updatedBaseRate) { + printf("Base rate with ID %d and type '%s', belonging to rate card ID %d " + . "was updated.\n", + $updatedBaseRate->id, + get_class($updatedBaseRate), + $updatedBaseRate->rateCardId + ); + } +} 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/v201405/CompanyService/CreateCompaniesExample.php b/examples/Dfp/v201505/CompanyService/CreateCompanies.php similarity index 95% rename from examples/Dfp/v201405/CompanyService/CreateCompaniesExample.php rename to examples/Dfp/v201505/CompanyService/CreateCompanies.php index 9ad6775cb..f30ea4ba3 100755 --- a/examples/Dfp/v201405/CompanyService/CreateCompaniesExample.php +++ b/examples/Dfp/v201505/CompanyService/CreateCompanies.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201405'); + $companyService = $user->GetService('CompanyService', 'v201505'); // Create an array to store local company objects. $companies = array(); diff --git a/examples/Dfp/v201505/CompanyService/GetAdvertisers.php b/examples/Dfp/v201505/CompanyService/GetAdvertisers.php new file mode 100755 index 000000000..9394a360d --- /dev/null +++ b/examples/Dfp/v201505/CompanyService/GetAdvertisers.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CompanyService. + $companyService = $user->GetService('CompanyService', 'v201505'); + + // Create a statement to select only companies that are advertisers. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'ADVERTISER'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get companies by statement. + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $company) { + printf("%d) Company with ID %d, name '%s', and type %s was found.\n", + $i++, $company->id, $company->name, $company->type); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/CompanyService/GetAllCompaniesExample.php b/examples/Dfp/v201505/CompanyService/GetAllCompanies.php similarity index 62% rename from examples/Dfp/v201405/CompanyService/GetAllCompaniesExample.php rename to examples/Dfp/v201505/CompanyService/GetAllCompanies.php index f9a73440d..a87c9a560 100755 --- a/examples/Dfp/v201405/CompanyService/GetAllCompaniesExample.php +++ b/examples/Dfp/v201505/CompanyService/GetAllCompanies.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201405'); + $companyService = $user->GetService('CompanyService', 'v201505'); - // Set defaults for page and statement. - $page = new CompanyPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all companies. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all companies. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get companies by statement. - $page = $companyService->getCompaniesByStatement($filterStatement); + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Company with ID %d, name '%s', and type %s was found.\n", + $i++, $company->id, $company->name, $company->type); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } + diff --git a/examples/Dfp/v201405/CompanyService/GetCompaniesByStatementExample.php b/examples/Dfp/v201505/CompanyService/UpdateCompanies.php similarity index 55% rename from examples/Dfp/v201405/CompanyService/GetCompaniesByStatementExample.php rename to examples/Dfp/v201505/CompanyService/UpdateCompanies.php index e23866d56..14e10b81e 100755 --- a/examples/Dfp/v201405/CompanyService/GetCompaniesByStatementExample.php +++ b/examples/Dfp/v201505/CompanyService/UpdateCompanies.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the CompanyService. - $companyService = $user->GetService('CompanyService', 'v201405'); + $companyService = $user->GetService('CompanyService', 'v201505'); - // Create bind variables. - $vars = MapUtils::GetMapEntries( - array('type' => new TextValue('ADVERTISER'))); + // Create a statement to select a single company by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $companyId); - // 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 the company. + $page = $companyService->getCompaniesByStatement( + $statementBuilder->ToStatement()); + $company = $page->results[0]; - // Get companies by statement. - $page = $companyService->getCompaniesByStatement($filterStatement); + // Update the comment. + $company->comment = sprintf('%s - updated.', $company->comment); - // 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++; - } - } + // Update the company on the server. + $companies = $companyService->updateCompanies(array($company)); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + foreach ($companies as $updatedCompany) { + printf("Company with ID %d, name '%s', and comment '%s' was updated.\n", + $updatedCompany->id, $updatedCompany->name, $updatedCompany->comment); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/ContactService/CreateContacts.php b/examples/Dfp/v201505/ContactService/CreateContacts.php similarity index 97% rename from examples/Dfp/v201405/ContactService/CreateContacts.php rename to examples/Dfp/v201505/ContactService/CreateContacts.php index 5374d301e..a706d3f4f 100755 --- a/examples/Dfp/v201405/ContactService/CreateContacts.php +++ b/examples/Dfp/v201505/ContactService/CreateContacts.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ $user->LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201405'); + $contactService = $user->GetService('ContactService', 'v201505'); // Set the ID of the advertiser company this contact is associated with. $advertiserCompanyId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; diff --git a/examples/Dfp/v201405/ContactService/GetAllContacts.php b/examples/Dfp/v201505/ContactService/GetAllContacts.php similarity index 67% rename from examples/Dfp/v201405/ContactService/GetAllContacts.php rename to examples/Dfp/v201505/ContactService/GetAllContacts.php index ce28eac91..2b2611548 100755 --- a/examples/Dfp/v201405/ContactService/GetAllContacts.php +++ b/examples/Dfp/v201505/ContactService/GetAllContacts.php @@ -6,7 +6,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -21,9 +21,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -37,6 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -48,33 +49,35 @@ $user->LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201405'); + $contactService = $user->GetService('ContactService', 'v201505'); - // 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; + // Create a statement to select all contacts. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ContactPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get contacts by statement. - $page = $contactService->getContactsByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contact) { - printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ContactService/GetUninvitedContacts.php b/examples/Dfp/v201505/ContactService/GetUninvitedContacts.php similarity index 62% rename from examples/Dfp/v201405/ContactService/GetUninvitedContacts.php rename to examples/Dfp/v201505/ContactService/GetUninvitedContacts.php index 769cc6145..1fdfb466a 100755 --- a/examples/Dfp/v201405/ContactService/GetUninvitedContacts.php +++ b/examples/Dfp/v201505/ContactService/GetUninvitedContacts.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201405'); + $contactService = $user->GetService('ContactService', 'v201505'); - // 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; + // Create a statement to select only contacts that aren't invited yet. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'UNINVITED'); - $page = new ContactPage(); + // Default for total result set size. + $totalResultSetSize = 0; 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)); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contact) { - printf("%d) Contact with ID \"%d\" and name \"%s\" was found.\n", $i++, + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ContactService/UpdateContacts.php b/examples/Dfp/v201505/ContactService/UpdateContacts.php similarity index 70% rename from examples/Dfp/v201405/ContactService/UpdateContacts.php rename to examples/Dfp/v201505/ContactService/UpdateContacts.php index e31965723..70617e86e 100755 --- a/examples/Dfp/v201405/ContactService/UpdateContacts.php +++ b/examples/Dfp/v201505/ContactService/UpdateContacts.php @@ -1,6 +1,6 @@ LogDefaults(); // Get the ContactService. - $contactService = $user->GetService('ContactService', 'v201405'); - - // Set the ID of the contact to update. - $contactId = "INSERT_CONTACT_ID_HERE"; + $contactService = $user->GetService('ContactService', 'v201505'); // Create a statement to select a single contact by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($contactId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contactId); // Get the contact. - $page = $contactService->getContactsByStatement($filterStatement); + $page = $contactService->getContactsByStatement( + $statementBuilder->ToStatement()); $contact = $page->results[0]; - // Update the address on the contact. + // Update the address of the contact. $contact->address = '123 New Street, New York, NY, 10011'; // Update the contact on the server. $contacts = $contactService->updateContacts(array($contact)); foreach ($contacts as $updatedContact) { - printf("Contact with ID '%d', name '%s', and address '%s' was " . - "updated.\n", $updatedContact->id, $updatedContact->name, - $updatedContact->address); + printf("Contact with ID %d, name '%s', and address '%s' was updated.\n", + $updatedContact->id, $updatedContact->name, $updatedContact->address); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php similarity index 97% rename from examples/Dfp/v201405/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201505/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php index 131f90286..96384b433 100755 --- a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/CreateContentMetadataKeyHierarchies.php @@ -2,7 +2,7 @@ /** * This example creates content metadata key hierarchies. To determine * which content metadata key hierarchies exist, run - * GetAllContentMetadataKeyHierarchiesExample.php. + * GetAllContentMetadataKeyHierarchies.php. * * Tags: ContentMetadataKeyHierarchyService.getContentMetadataKeyHierarchiesByStatement * Tags: ContentMetadataKeyHierarchyService.createContentMetadataKeyHierarchies @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ // Get the ContentMetadataKeyHierarchyService. $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201405'); + $user->GetService('ContentMetadataKeyHierarchyService', 'v201505'); // Set the IDs of the custom targeting keys for the hierarchy. $customTargetingKeyId1 = "INSERT_LEVEL_ONE_CUSTOM_TARGETING_KEY_ID_HERE"; diff --git a/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php new file mode 100755 index 000000000..3bc98791e --- /dev/null +++ b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchies.php @@ -0,0 +1,122 @@ +LogDefaults(); + + // Get the ContentMetadataKeyHierarchyService. + $contentMetadataKeyHierarchyService = $user->GetService( + 'ContentMetadataKeyHierarchyService', 'v201505'); + + // Create a statement to select a single content metadata key hierarchy by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contentMetadataKeyHierarchyId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get content metadata key hierarchies by statement. + $page = $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $contentMetadataKeyHierarchy) { + printf("%d) Content metadata key hierarchy with ID %d, and name '%s' " + . "will be deleted.\n", $i++, $contentMetadataKeyHierarchy->id, + $contentMetadataKeyHierarchy->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of content metadata key hierarchies to be deleted: %d\n", + totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeleteContentMetadataKeyHierarchies(); + + // Perform action. + $result = $contentMetadataKeyHierarchyService-> + performContentMetadataKeyHierarchyAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of content metadata key hierarchies deleted: %d\n", + $result->numChanges); + } else { + printf("No content metadata key hierarchies were deleted.\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/v201405/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php similarity index 73% rename from examples/Dfp/v201405/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201505/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php index 1a0e50c93..3d25670e7 100755 --- a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/GetAllContentMetadataKeyHierarchies.php @@ -1,7 +1,7 @@ GetService('ContentMetadataKeyHierarchyService', 'v201405'); + $user->GetService('ContentMetadataKeyHierarchyService', 'v201505'); - // Statement parts to help build a statement to select all content metadata - // key hierarchies. - $pqlTemplate = 'ORDER BY id ASC LIMIT %d OFFSET %d'; - $SUGGESTED_PAGE_LIMIT = 500; - $offset = 0; + // Create a statement to select all content metadata key hierarchies. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - $page = new ContentMetadataKeyHierarchyPage(); + // Default for total result set size. + $totalResultSetSize = 0; do { // Get content metadata key hierarchies by statement. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement(new Statement( - sprintf($pqlTemplate, $SUGGESTED_PAGE_LIMIT, $offset))); + $page = + $contentMetadataKeyHierarchyService->getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $contentMetadataKeyHierarchy) { - printf("%d) Content metadata key hierarchy with ID '%d' and name '%s' " + printf("%d) Content metadata key hierarchy with ID %d, and name '%s' " . "was found.\n", $i++, $contentMetadataKeyHierarchy->id, $contentMetadataKeyHierarchy->name); } } - $offset += $SUGGESTED_PAGE_LIMIT; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of results found: %d\n", $page->totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php similarity index 68% rename from examples/Dfp/v201405/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php rename to examples/Dfp/v201505/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php index 192475fa8..9c54d1f89 100755 --- a/examples/Dfp/v201405/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchiesExample.php +++ b/examples/Dfp/v201505/ContentMetadataKeyHierarchyService/UpdateContentMetadataKeyHierarchies.php @@ -2,7 +2,7 @@ /** * This example updates a content metadata key hierarchy by adding a hierarchy * level. To determine which content metadata key hierarchies exist, run - * GetAllContentMetadataKeyHierarchiesExample.php. + * GetAllContentMetadataKeyHierarchies.php. * * Tags: ContentMetadataKeyHierarchyService.getContentMetadataKeyHierarchiesByStatement * Tags: ContentMetadataKeyHierarchyService.updateContentMetadataKeyHierarchies @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -40,8 +40,16 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; +// Set the ID of the content metadata key hierarchy to update. +$contentMetadataKeyHierarchyId = + 'INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE'; + +// Set the ID of the custom targeting key to be added as a hierarchy level. +$customTargetingKeyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + try { // Get DfpUser from credentials in "../auth.ini" // relative to the DfpUser.php file's directory. @@ -52,42 +60,41 @@ // Get the ContentMetadataKeyHierarchyService. $contentMetadataKeyHierarchyService = - $user->GetService('ContentMetadataKeyHierarchyService', 'v201405'); - - // Set the ID of the content metadata key hierarchy to update. - $contentMetadataKeyHierarchyId = - "INSERT_CONTENT_METADATA_KEY_HIERARCHY_ID_HERE"; - - // Set the ID of the custom targeting key to be added as a hierarchy level. - $customTargetingKeyId = "INSERT_CUSTOM_TARGETING_KEY_ID_HERE"; + $user->GetService('ContentMetadataKeyHierarchyService', 'v201505'); // Create a statement to select a single content metadata key hierarchy by ID. - $vars = MapUtils::GetMapEntries(array('id' => - new NumberValue($contentMetadataKeyHierarchyId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $contentMetadataKeyHierarchyId); // Get the content metadata key hierarchy. - $page = $contentMetadataKeyHierarchyService-> - getContentMetadataKeyHierarchiesByStatement($filterStatement); + $page = + $contentMetadataKeyHierarchyService-> + getContentMetadataKeyHierarchiesByStatement( + $statementBuilder->ToStatement()); $contentMetadataKeyHierarchy = $page->results[0]; // Update the content metadata key hierarchy by adding a hierarchy level. $hierarchyLevels = $contentMetadataKeyHierarchy->hierarchyLevels; + $hierarchyLevel = new ContentMetadataKeyHierarchyLevel(); $hierarchyLevel->customTargetingKeyId = $customTargetingKeyId; $hierarchyLevel->hierarchyLevel = count($hierarchyLevels) + 1; - $hierarchyLevels[] = $hierarchyLevel; - $contentMetadataKeyHierarchy->hierarchyLevels = $hierarchyLevels; + + $contentMetadataKeyHierarchy->hierarchyLevels[] = $hierarchyLevel; // Update the content metadata key hierarchy on the server. - $contentMetadataKeyHierarchies = $contentMetadataKeyHierarchyService-> - updateContentMetadataKeyHierarchies(array($contentMetadataKeyHierarchy)); + $contentMetadataKeyHierarchies = + $contentMetadataKeyHierarchyService->updateContentMetadataKeyHierarchies( + array($contentMetadataKeyHierarchy)); - foreach ($contentMetadataKeyHierarchies as $contentMetadataKeyHierarchy) { - printf("Content metadata key hierarchy with ID '%d' and name '%s' was " . - "updated.\n", $contentMetadataKeyHierarchy->id, - $contentMetadataKeyHierarchy->name); + foreach ( + $contentMetadataKeyHierarchies as $updatedContentMetadataKeyHierarchy) { + printf("Content metadata key hierarchy with ID %d, and name '%s' was " + . "updated.\n", $updatedContentMetadataKeyHierarchy->id, + $updatedContentMetadataKeyHierarchy->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/ContentService/GetAllContentExample.php b/examples/Dfp/v201505/ContentService/GetAllContent.php similarity index 61% rename from examples/Dfp/v201405/ContentService/GetAllContentExample.php rename to examples/Dfp/v201505/ContentService/GetAllContent.php index 27943000b..9bedbfa25 100755 --- a/examples/Dfp/v201405/ContentService/GetAllContentExample.php +++ b/examples/Dfp/v201505/ContentService/GetAllContent.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the ContentService. - $contentService = $user->GetService('ContentService', 'v201405'); + $contentService = $user->GetService('ContentService', 'v201505'); - // Set defaults for page and statement. - $page = new ContentPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all content. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all content. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get content by statement. - $page = $contentService->getContentByStatement($filterStatement); + $page = $contentService->getContentByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Content with ID %d, name '%s', and status %s was found.\n", + $i++, $content->id, $content->name, $content->status); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/CreativeService/CreateCreativeFromTemplateExample.php b/examples/Dfp/v201505/CreativeService/CreateCreativeFromTemplate.php similarity index 89% rename from examples/Dfp/v201405/CreativeService/CreateCreativeFromTemplateExample.php rename to examples/Dfp/v201505/CreativeService/CreateCreativeFromTemplate.php index 15336cd91..3ef1ed990 100755 --- a/examples/Dfp/v201405/CreativeService/CreateCreativeFromTemplateExample.php +++ b/examples/Dfp/v201505/CreativeService/CreateCreativeFromTemplate.php @@ -2,9 +2,9 @@ /** * This example creates a new template creative for a given advertiser. To * determine which companies are advertisers, run - * GetCompaniesByStatementExample.php. To determine which creatives already - * exist, run GetAllCreativesExample.php. To determine which creative templates - * exist, run GetAllCreativeTemplatesExample.php + * GetCompaniesByStatement.php. To determine which creatives already + * exist, run GetAllCreatives.php. To determine which creative templates + * exist, run GetAllCreativeTemplates.php * * Tags: CreativeService.createCreatives * @@ -25,12 +25,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -41,8 +41,12 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; require_once 'Google/Api/Ads/Common/Util/MediaUtils.php'; +require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; + +// Set the ID of the advertiser (company) that all creatives will be +// assigned to. +$advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; try { // Get DfpUser from credentials in "../auth.ini" @@ -53,11 +57,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); - - // Set the ID of the advertiser (company) that all creatives will be - // assigned to. - $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $creativeService = $user->GetService('CreativeService', 'v201505'); // Use the image banner with optional third party tracking template. $creativeTemplateId = 10000680; @@ -114,7 +114,7 @@ foreach ($templateCreatives as $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->name, get_class($templateCreative), $templateCreative->previewUrl); } } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201405/CreativeService/CreateCreativesExample.php b/examples/Dfp/v201505/CreativeService/CreateCreatives.php similarity index 76% rename from examples/Dfp/v201405/CreativeService/CreateCreativesExample.php rename to examples/Dfp/v201505/CreativeService/CreateCreatives.php index 79b4e7971..f2508a9fc 100755 --- a/examples/Dfp/v201405/CreativeService/CreateCreativesExample.php +++ b/examples/Dfp/v201505/CreativeService/CreateCreatives.php @@ -2,8 +2,8 @@ /** * This example creates new image creatives for a given advertiser. To * determine which companies are advertisers, run - * GetCompaniesByStatementExample.php. To determine which creatives already - * exist, run GetAllCreativesExample.php. + * GetCompaniesByStatement.php. To determine which creatives already + * exist, run GetAllCreatives.php. * * Tags: CreativeService.createCreatives * @@ -24,13 +24,11 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -42,8 +40,12 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; require_once 'Google/Api/Ads/Common/Util/MediaUtils.php'; +require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; + +// Set the ID of the advertiser (company) that all creatives will be +// assigned to. +$advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; try { // Get DfpUser from credentials in "../auth.ini" @@ -54,11 +56,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); - - // Set the ID of the advertiser (company) that all creatives will be - // assigned to. - $advertiserId = 'INSERT_ADVERTISER_COMPANY_ID_HERE'; + $creativeService = $user->GetService('CreativeService', 'v201505'); // Create an array to store local image creative objects. $imageCreatives = array(); @@ -94,26 +92,30 @@ 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"; + printf("An image creative with ID %d, name '%s', and size '%sx%s' was " + . "created and can be previewed at: '%s'\n", + $creative->id, + $creative->name, + $creative->size->width, + $creative->size->height, + $creative->previewUrl + ); } else { - print 'A creative with ID "' . $creative->id - . '", name "' . $creative->name - . '", and type "' . $creative->CreativeType - . "\" was created.\n"; + printf("A creative with ID %d, name '%s', and type '%s' was created.\n", + $creative->id, + $creative->name, + get_class($creative) + ); } } } else { - print "No creatives created.\n"; + printf("No creatives created.\n"); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/CreativeService/CreateCustomCreativeExample.php b/examples/Dfp/v201505/CreativeService/CreateCustomCreative.php similarity index 93% rename from examples/Dfp/v201405/CreativeService/CreateCustomCreativeExample.php rename to examples/Dfp/v201505/CreativeService/CreateCustomCreative.php index 7e402308c..4feb86cea 100755 --- a/examples/Dfp/v201405/CreativeService/CreateCustomCreativeExample.php +++ b/examples/Dfp/v201505/CreativeService/CreateCustomCreative.php @@ -2,8 +2,8 @@ /** * This example creates a custom creative for a given advertiser. This feature * is only available to DFP premium solution networks. To determine which - * companies are advertisers, run GetCompaniesByStatementExample.php. To - * determine which creatives already exist, run GetAllCreativesExample.php. + * companies are advertisers, run GetCompaniesByStatement.php. To + * determine which creatives already exist, run GetAllCreatives.php. * * Tags: CreativeService.createCreatives * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ $user->LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); + $creativeService = $user->GetService('CreativeService', 'v201505'); // Set the ID of the advertiser (company) that all creatives will be // assigned to. diff --git a/examples/Dfp/v201405/CreativeService/GetAllCreativesExample.php b/examples/Dfp/v201505/CreativeService/GetAllCreatives.php similarity index 63% rename from examples/Dfp/v201405/CreativeService/GetAllCreativesExample.php rename to examples/Dfp/v201505/CreativeService/GetAllCreatives.php index fbcb08391..e9ab8d2d7 100755 --- a/examples/Dfp/v201405/CreativeService/GetAllCreativesExample.php +++ b/examples/Dfp/v201505/CreativeService/GetAllCreatives.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CreativeService. - $creativeService = $user->GetService('CreativeService', 'v201405'); + $creativeService = $user->GetService('CreativeService', 'v201505'); - // Set defaults for page and statement. - $page = new CreativePage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all creatives. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creatives. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creatives by statement. - $page = $creativeService->getCreativesByStatement($filterStatement); + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Creative with ID %d, and name '%s' was found.\n", $i++, + $creative->id, $creative->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/CreativeService/GetImageCreatives.php b/examples/Dfp/v201505/CreativeService/GetImageCreatives.php new file mode 100755 index 000000000..f439da092 --- /dev/null +++ b/examples/Dfp/v201505/CreativeService/GetImageCreatives.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201505'); + + // Create a statement to select only image creatives. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('creativeType = :creativeType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('creativeType', 'ImageCreative'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creatives by statement. + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creative) { + printf("%d) Creative with ID %d, and name '%s' was found.\n", $i++, + $creative->id, $creative->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/CreativeService/UpdateCreatives.php b/examples/Dfp/v201505/CreativeService/UpdateCreatives.php new file mode 100755 index 000000000..0b7034f41 --- /dev/null +++ b/examples/Dfp/v201505/CreativeService/UpdateCreatives.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CreativeService. + $creativeService = $user->GetService('CreativeService', 'v201505'); + + // Create a statement to select a single creative by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeId); + + // Get the creative. + $page = $creativeService->getCreativesByStatement( + $statementBuilder->ToStatement()); + $creative = $page->results[0]; + + // Only update the destination URL if it has one. + if ($creative instanceof HasDestinationUrlCreative) { + // Update the destination URL of the creative. + $creative->destinationUrl = 'https://news.google.com'; + + // Update the creative on the server. + $creatives = $creativeService->updateCreatives(array($creative)); + + foreach ($creatives as $updatedCreative) { + printf("Creative with ID %d, and name '%s' was updated.\n", + $updatedCreative->id, $updatedCreative->name); + } + } else { + printf("No creatives 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/v201405/CreativeSetService/CreateCreativeSetsExample.php b/examples/Dfp/v201505/CreativeSetService/CreateCreativeSet.php similarity index 79% rename from examples/Dfp/v201405/CreativeSetService/CreateCreativeSetsExample.php rename to examples/Dfp/v201505/CreativeSetService/CreateCreativeSet.php index f9aa4d9d8..430435fc5 100755 --- a/examples/Dfp/v201405/CreativeSetService/CreateCreativeSetsExample.php +++ b/examples/Dfp/v201505/CreativeSetService/CreateCreativeSet.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201405'); + $creativeSetService = $user->GetService('CreativeSetService', 'v201505'); // Set the ID of the creatives to associate with this set. $masterCreativeID = 'INSERT_MASTER_CREATIVE_ID_HERE'; @@ -64,14 +64,13 @@ $creativeSet->companionCreativeIds[] = $companionCreativeID; // Create the creative set on the server. - $creativeSets = $creativeSetService->createCreativeSets(array($creativeSet)); + $createdCreativeSet = $creativeSetService->createCreativeSet($creativeSet); - foreach ($creativeSets as $creativeSet) { - printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " - . ", and companion creativeID(s) {%s} was created.\n", - $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, - join(',', $creativeSet->companionCreativeIds)); - } + printf("A creative set with ID '%s', name '%s', master creative ID '%s' " + . ", and companion creativeID(s) {%s} was created.\n", + $createdCreativeSet->id, $createdCreativeSet->name, + $createdCreativeSet->masterCreativeId, + join(',', $createdCreativeSet->companionCreativeIds)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/CreativeSetService/GetAllCreativesSetsExample.php b/examples/Dfp/v201505/CreativeSetService/GetAllCreativesSets.php similarity index 65% rename from examples/Dfp/v201405/CreativeSetService/GetAllCreativesSetsExample.php rename to examples/Dfp/v201505/CreativeSetService/GetAllCreativesSets.php index 6ba179ed4..06aaa7b86 100755 --- a/examples/Dfp/v201405/CreativeSetService/GetAllCreativesSetsExample.php +++ b/examples/Dfp/v201505/CreativeSetService/GetAllCreativesSets.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201405'); + $creativeSetService = $user->GetService('CreativeSetService', 'v201505'); - // Set default offset. - $offset = 0; - $filterStatement = new Statement(); + // Create a statement to select all creative sets. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creative sets. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creative sets by statement. - $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Creative set with ID %d, and name '%s' was found.\n", $i++, + $creativeSet->id, $creativeSet->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/CreativeSetService/GetCreativeSetsForMasterCreative.php b/examples/Dfp/v201505/CreativeSetService/GetCreativeSetsForMasterCreative.php new file mode 100755 index 000000000..0db2f0c25 --- /dev/null +++ b/examples/Dfp/v201505/CreativeSetService/GetCreativeSetsForMasterCreative.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the CreativeSetService. + $creativeSetService = $user->GetService('CreativeSetService', 'v201505'); + + // Create a statement to select only creative sets that have the given master + // creative. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('masterCreativeId = :masterCreativeId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('masterCreativeId', $masterCreativeId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative sets by statement. + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeSet) { + printf("%d) Creative set with ID %d, and name '%s' was found.\n", $i++, + $creativeSet->id, $creativeSet->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/CreativeSetService/UpdateCreativeSetsExample.php b/examples/Dfp/v201505/CreativeSetService/UpdateCreativeSet.php similarity index 58% rename from examples/Dfp/v201405/CreativeSetService/UpdateCreativeSetsExample.php rename to examples/Dfp/v201505/CreativeSetService/UpdateCreativeSet.php index b6532176c..9b21684cd 100755 --- a/examples/Dfp/v201405/CreativeSetService/UpdateCreativeSetsExample.php +++ b/examples/Dfp/v201505/CreativeSetService/UpdateCreativeSet.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CreativeSetService. - $creativeSetService = $user->GetService('CreativeSetService', 'v201405'); - - // Set the ID of the creative set to get. - $creativeSetId = 'INSERT_CREATIVE_SET_ID_HERE'; - $companionCreativeId = 'INSERT_COMPANION_CREATIVE_ID_HERE'; + $creativeSetService = $user->GetService('CreativeSetService', 'v201505'); // Create a statement to select a single creative set by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($creativeSetId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeSetId); // Get the creative set. - $page = $creativeSetService->getCreativeSetsByStatement($filterStatement); + $page = $creativeSetService->getCreativeSetsByStatement( + $statementBuilder->ToStatement()); $creativeSet = $page->results[0]; - // Update the companion creatives. - $creativeSet->companionCreativeIds[] = $companionCreativeID; + // Add the companion creative to the creative set. + $creativeSet->companionCreativeIds[] = $companionCreativeId; // Update the creative set on the server. - $creativeSets = $creativeSetService->updateCreativeSets(array($creativeSet)); + $updatedCreativeSet = $creativeSetService->updateCreativeSet($creativeSet); - foreach ($creativeSets as $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)); - } + printf("Creative set with ID %d, master creative ID %d, and companion " + . "creative IDs [%s] was updated.\n", $updatedCreativeSet->id, + $updatedCreativeSet->masterCreativeId, + implode(',', $updatedCreativeSet->companionCreativeIds)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/CreativeTemplateService/GetAllCreativeTemplatesExample.php b/examples/Dfp/v201505/CreativeTemplateService/GetAllCreativeTemplates.php similarity index 65% rename from examples/Dfp/v201405/CreativeTemplateService/GetAllCreativeTemplatesExample.php rename to examples/Dfp/v201505/CreativeTemplateService/GetAllCreativeTemplates.php index 1b30f73b5..8710bfff2 100755 --- a/examples/Dfp/v201405/CreativeTemplateService/GetAllCreativeTemplatesExample.php +++ b/examples/Dfp/v201505/CreativeTemplateService/GetAllCreativeTemplates.php @@ -6,7 +6,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -21,13 +21,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -38,6 +37,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -49,42 +49,42 @@ $user->LogDefaults(); // Get the CreativeTemplateService. - $creativeTemplateService = - $user->GetService('CreativeTemplateService', 'v201405'); + $creativeTemplateService = $user->GetService('CreativeTemplateService', + 'v201505'); - // Set defaults for page and statement. - $page = new CreativeTemplatePage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all creative templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all creative templates. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get creative templates by statement. $page = $creativeTemplateService->getCreativeTemplatesByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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, + printf("%d) Creative template with ID %d, name '%s', and type %s was " + . "found.\n", $i++, $creativeTemplate->id, $creativeTemplate->name, $creativeTemplate->type); - $i++; } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php b/examples/Dfp/v201505/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php new file mode 100755 index 000000000..815904008 --- /dev/null +++ b/examples/Dfp/v201505/CreativeTemplateService/GetSystemDefinedCreativeTemplates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the CreativeTemplateService. + $creativeTemplateService = $user->GetService('CreativeTemplateService', + 'v201505'); + + // Create a statement to select only system defined creative templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'SYSTEM_DEFINED'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative templates by statement. + $page = $creativeTemplateService->getCreativeTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeTemplate) { + printf("%d) Creative template with ID %d, name '%s', and type %s was " + . "found.\n", $i++, $creativeTemplate->id, $creativeTemplate->name, + $creativeTemplate->type); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/CreativeWrapperService/CreateCreativeWrappersExample.php b/examples/Dfp/v201505/CreativeWrapperService/CreateCreativeWrappers.php similarity index 97% rename from examples/Dfp/v201405/CreativeWrapperService/CreateCreativeWrappersExample.php rename to examples/Dfp/v201505/CreativeWrapperService/CreateCreativeWrappers.php index e3ed7a0e9..a75061bca 100755 --- a/examples/Dfp/v201405/CreativeWrapperService/CreateCreativeWrappersExample.php +++ b/examples/Dfp/v201505/CreativeWrapperService/CreateCreativeWrappers.php @@ -3,7 +3,7 @@ * This code example creates a new creative wrapper. Creative wrappers must be * associated with a LabelType.CREATIVE_WRAPPER label and applied to ad units * by AdUnit.appliedLabels. To determine which creative wrappers exist, run - * GetAllCreativeWrappersExample.php. + * GetAllCreativeWrappers.php. * * Tags: CreativeWrapperService.createCreativeWrappers * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -51,7 +51,7 @@ $user->LogDefaults(); // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201405'); + $creativeWrapperService = $user->GetCreativeWrapperService('v201505'); $labelId = 'INSERT_CREATIVE_WRAPPER_LABEL_ID_HERE'; diff --git a/examples/Dfp/v201505/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php b/examples/Dfp/v201505/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php new file mode 100755 index 000000000..90e26a87a --- /dev/null +++ b/examples/Dfp/v201505/CreativeWrapperService/DeactivateCreativeWrappersForLabel.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201505'); + + // Create a statement to select the active creative wrappers for the given + // label. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('labelId = :labelId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('labelId', $labelId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label with ID %d, " + . "with status %s will be deactivated.\n", $i++, + $creativeWrapper->id, $creativeWrapper->labelId, + $creativeWrapper->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of creative wrappers to be deactivated: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivateCreativeWrappers(); + + // Perform action. + $result = $creativeWrapperService->performCreativeWrapperAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of creative wrappers deactivated: %d\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) { + printf("%s\n", $e->getMessage()); +} + diff --git a/examples/Dfp/v201505/CreativeWrapperService/GetActiveCreativeWrappers.php b/examples/Dfp/v201505/CreativeWrapperService/GetActiveCreativeWrappers.php new file mode 100755 index 000000000..18b02db49 --- /dev/null +++ b/examples/Dfp/v201505/CreativeWrapperService/GetActiveCreativeWrappers.php @@ -0,0 +1,93 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201505'); + + // Create a statement to select only active creative wrappers. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label %d, and " + . "status %s was found.\n", $i++, $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/CreativeWrapperService/GetAllCreativeWrappers.php b/examples/Dfp/v201505/CreativeWrapperService/GetAllCreativeWrappers.php new file mode 100755 index 000000000..b207ab36a --- /dev/null +++ b/examples/Dfp/v201505/CreativeWrapperService/GetAllCreativeWrappers.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the CreativeWrapperService. + $creativeWrapperService = $user->GetService('CreativeWrapperService', + 'v201505'); + + // Create a statement to select all creative wrappers. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get creative wrappers by statement. + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $creativeWrapper) { + printf("%d) Creative wrapper with ID %d, applying to label %d, and " + . "status %s was found.\n", $i++, $creativeWrapper->id, + $creativeWrapper->labelId, $creativeWrapper->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/CreativeWrapperService/UpdateCreativeWrappersExample.php b/examples/Dfp/v201505/CreativeWrapperService/UpdateCreativeWrappers.php similarity index 67% rename from examples/Dfp/v201405/CreativeWrapperService/UpdateCreativeWrappersExample.php rename to examples/Dfp/v201505/CreativeWrapperService/UpdateCreativeWrappers.php index 170427599..0ff3a6673 100755 --- a/examples/Dfp/v201405/CreativeWrapperService/UpdateCreativeWrappersExample.php +++ b/examples/Dfp/v201505/CreativeWrapperService/UpdateCreativeWrappers.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CreativeWrapperService. - $creativeWrapperService = $user->GetCreativeWrapperService('v201405'); - - $creativeWrapperId = 'INSERT_CREATIVE_WRAPPER_ID_HERE'; + $creativeWrapperService = $user->GetService('CreativeWrapperService', 'v201505'); // Create a statement to select a single creative wrapper by ID. - $vars = - MapUtils::GetMapEntries(array('id' => - new NumberValue($creativeWrapperId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $creativeWrapperId); // Get the creative wrapper. - $page = - $creativeWrapperService->getCreativeWrappersByStatement($filterStatement); + $page = $creativeWrapperService->getCreativeWrappersByStatement( + $statementBuilder->ToStatement()); $creativeWrapper = $page->results[0]; // Update the creative wrapper ordering. @@ -74,9 +75,10 @@ $creativeWrappers = $creativeWrapperService->updateCreativeWrappers(array($creativeWrapper)); - foreach ($creativeWrappers as $creativeWrapper) { - printf("Creative wrapper with ID '%s' and wrapping order '%s' was " . - "updated.\n", $creativeWrapper->id, $creativeWrapper->ordering); + foreach ($creativeWrappers as $updatedCreativeWrapper) { + printf("Creative wrapper with ID %d, and wrapping order '%s' was " + . "updated.\n", $updatedCreativeWrapper->id, + $updatedCreativeWrapper->ordering); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/CustomFieldService/CreateCustomFieldOptions.php b/examples/Dfp/v201505/CustomFieldService/CreateCustomFieldOptions.php similarity index 95% rename from examples/Dfp/v201405/CustomFieldService/CreateCustomFieldOptions.php rename to examples/Dfp/v201505/CustomFieldService/CreateCustomFieldOptions.php index acc9ec872..ac4b86a12 100755 --- a/examples/Dfp/v201405/CustomFieldService/CreateCustomFieldOptions.php +++ b/examples/Dfp/v201505/CustomFieldService/CreateCustomFieldOptions.php @@ -3,7 +3,7 @@ * This example creates custom field options for a drop-down custom field. * Once created, custom field options can be found under the options fields of * the drop-down custom field and they cannot be deleted. To determine which - * custom fields exist, run GetAllCustomFieldsExample.php. + * custom fields exist, run GetAllCustomFields.php. * * Tags: CustomFieldService.createCustomFieldOptions * @@ -24,7 +24,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,7 +52,7 @@ // Get the CustomFieldService. $customFieldService = - $user->GetService('CustomFieldService', 'v201405'); + $user->GetService('CustomFieldService', 'v201505'); // Set the ID of the drop-down custom field to create options for. $customFieldId = "INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE"; diff --git a/examples/Dfp/v201405/CustomFieldService/CreateCustomFields.php b/examples/Dfp/v201505/CustomFieldService/CreateCustomFields.php similarity index 95% rename from examples/Dfp/v201405/CustomFieldService/CreateCustomFields.php rename to examples/Dfp/v201505/CustomFieldService/CreateCustomFields.php index 731e5dca6..56d8f4913 100755 --- a/examples/Dfp/v201405/CustomFieldService/CreateCustomFields.php +++ b/examples/Dfp/v201505/CustomFieldService/CreateCustomFields.php @@ -1,7 +1,7 @@ GetService('CustomFieldService', 'v201405'); + $user->GetService('CustomFieldService', 'v201505'); // Create custom fields. $customField1 = new CustomField(); diff --git a/examples/Dfp/v201505/CustomFieldService/DeactivateCustomFields.php b/examples/Dfp/v201505/CustomFieldService/DeactivateCustomFields.php new file mode 100755 index 000000000..6893eacde --- /dev/null +++ b/examples/Dfp/v201505/CustomFieldService/DeactivateCustomFields.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201505'); + + // Create a statement to select a single custom field by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customFieldId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customField) { + printf("%d) Custom field with ID %d, and name '%s' will be " + . "deactivated.\n", $i++, $customField->id, $customField->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of custom fields to be deactivated: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivateCustomFields(); + + // Perform action. + $result = $customFieldService->performCustomFieldAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of custom fields deactivated: %d\n", $result->numChanges); + } else { + printf("No custom fields were deactivated.\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/v201405/CustomFieldService/GetAllCustomFieldsExample.php b/examples/Dfp/v201505/CustomFieldService/GetAllCustomFields.php similarity index 65% rename from examples/Dfp/v201405/CustomFieldService/GetAllCustomFieldsExample.php rename to examples/Dfp/v201505/CustomFieldService/GetAllCustomFields.php index 4189481ff..a06e3e391 100755 --- a/examples/Dfp/v201405/CustomFieldService/GetAllCustomFieldsExample.php +++ b/examples/Dfp/v201505/CustomFieldService/GetAllCustomFields.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201405'); + $customFieldService = $user->GetService('CustomFieldService', 'v201505'); - // Set defaults for page and statement. - $page = new CustomFieldPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all custom fields. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all custom fields. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get custom fields by statement. - $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $customField) { - print $i . ') Custom field with ID "' . $customField->id - . '" and name "' . $customField->name . "\" was found.\n"; - $i++; + printf("%d) Custom field with ID %d, and name '%s' was found.\n", $i++, + $customField->id, $customField->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/CustomFieldService/GetCustomFieldsForLineItems.php b/examples/Dfp/v201505/CustomFieldService/GetCustomFieldsForLineItems.php new file mode 100755 index 000000000..b40493a1d --- /dev/null +++ b/examples/Dfp/v201505/CustomFieldService/GetCustomFieldsForLineItems.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the CustomFieldService. + $customFieldService = $user->GetService('CustomFieldService', 'v201505'); + + // Create a statement to select only custom fields that can be applied to + // line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('entityType = :entityType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('entityType', 'LINE_ITEM'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom fields by statement. + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customField) { + printf("%d) Custom field with ID %d, and name '%s' was found.\n", $i++, + $customField->id, $customField->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/CustomFieldService/SetLineItemCustomFieldValue.php b/examples/Dfp/v201505/CustomFieldService/SetLineItemCustomFieldValue.php similarity index 93% rename from examples/Dfp/v201405/CustomFieldService/SetLineItemCustomFieldValue.php rename to examples/Dfp/v201505/CustomFieldService/SetLineItemCustomFieldValue.php index 959bbc280..3fd8e77fb 100755 --- a/examples/Dfp/v201405/CustomFieldService/SetLineItemCustomFieldValue.php +++ b/examples/Dfp/v201505/CustomFieldService/SetLineItemCustomFieldValue.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); // Set the IDs of the custom fields, custom field option, and line item. $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; diff --git a/examples/Dfp/v201405/CustomFieldService/UpdateCustomFieldExample.php b/examples/Dfp/v201505/CustomFieldService/UpdateCustomFields.php similarity index 66% rename from examples/Dfp/v201405/CustomFieldService/UpdateCustomFieldExample.php rename to examples/Dfp/v201505/CustomFieldService/UpdateCustomFields.php index 107c796a4..31a63bd5e 100755 --- a/examples/Dfp/v201405/CustomFieldService/UpdateCustomFieldExample.php +++ b/examples/Dfp/v201505/CustomFieldService/UpdateCustomFields.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the CustomFieldService. - $customFieldService = $user->GetService('CustomFieldService', 'v201405'); - - // Set the ID of the custom field to update. - $customFieldId = "INSERT_CUSTOM_FIELD_ID_HERE"; + $customFieldService = $user->GetService('CustomFieldService', 'v201505'); // Create a statement to select a single custom field by ID. - $vars = - MapUtils::GetMapEntries(array('id' => new NumberValue($customFieldId))); - $filterStatement = new Statement("WHERE id = :id ORDER BY id ASC LIMIT 1", - $vars); + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customFieldId); // Get the custom field. - $page = $customFieldService->getCustomFieldsByStatement($filterStatement); + $page = $customFieldService->getCustomFieldsByStatement( + $statementBuilder->ToStatement()); $customField = $page->results[0]; - // Update the description on the custom field. - $customField->description = "Description " . time(); + // Update the custom field description. + $customField->description = 'New custom field description.'; // Update the custom field on the server. $customFields = $customFieldService->updateCustomFields(array($customField)); - foreach ($customFields as $customField) { - printf("Custom field with ID '%s', name '%s', and description '%s' was " - . "updated.\n", $customField->id, $customField->name, - $customField->description); + foreach ($customFields as $updatedCustomField) { + printf("Custom field with ID %d, and name '%s' was updated.\n", + $updatedCustomField->id, $updatedCustomField->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php b/examples/Dfp/v201505/CustomTargetingService/CreateCustomTargetingKeysAndValues.php similarity index 96% rename from examples/Dfp/v201405/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php rename to examples/Dfp/v201505/CustomTargetingService/CreateCustomTargetingKeysAndValues.php index 7ae08bf89..49ec52fb9 100755 --- a/examples/Dfp/v201405/CustomTargetingService/CreateCustomTargetingKeysAndValuesExample.php +++ b/examples/Dfp/v201505/CustomTargetingService/CreateCustomTargetingKeysAndValues.php @@ -2,8 +2,8 @@ /** * This example creates new custom targeting keys and values. To determine which * custom targeting keys and values exist, run - * GetAllCustomTargetingKeysAndValuesExample.php. To target these custom - * targeting keys and values, run TargetCustomCriteriaExample.php. + * GetAllCustomTargetingKeysAndValues.php. To target these custom + * targeting keys and values, run TargetCustomCriteria.php. * * Tags: CustomTargetingService.createCustomTargetingKeys * Tags: CustomTargetingService.createCustomTargetingValues @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -54,7 +54,7 @@ // Get the CustomTargetingService. $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); + $user->GetService('CustomTargetingService', 'v201505'); // Create predefined key. $genderKey = new CustomTargetingKey(); diff --git a/examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingKeysExample.php b/examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingKeys.php similarity index 57% rename from examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingKeysExample.php rename to examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingKeys.php index f8a21d17b..aa7c19837 100755 --- a/examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingKeysExample.php +++ b/examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingKeys.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - // 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'; + $customTargetingService = $user->GetService('CustomTargetingService', + 'v201505'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('name' => new TextValue($keyName))); + // Create a statement to select a single custom targeting key by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingKeyId); - $offset = 0; - $keyIds = array(); + // Default for total result set size. + $totalResultSetSize = 0; 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); + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; foreach ($page->results as $customTargetingKey) { - $keyIds[] = $customTargetingKey->id; + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' will be deleted.\n", $i++, $customTargetingKey->id, + $customTargetingKey->name, $customTargetingKey->displayName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of custom targeting keys to be deleted: %d\n", - sizeof($keyIds)); + $totalResultSetSize); - if (sizeof($keyIds) > 0) { - // Create action statement. - $filterStatementText = sprintf('WHERE id IN (%s)', implode(',', $keyIds)); - $filterStatement = new Statement($filterStatementText); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeleteCustomTargetingKeys(); // Perform action. - $result = $customTargetingService->performCustomTargetingKeyAction( - $action, $filterStatement); + $result = $customTargetingService->performCustomTargetingKeyAction($action, + $statementBuilder->ToStatement()); // 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"; + printf("No custom targeting keys were deleted.\n"); } } } catch (OAuth2Exception $e) { @@ -115,6 +113,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingValuesExample.php b/examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingValues.php similarity index 57% rename from examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingValuesExample.php rename to examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingValues.php index da36a0f26..6c9cfd20d 100755 --- a/examples/Dfp/v201405/CustomTargetingService/DeleteCustomTargetingValuesExample.php +++ b/examples/Dfp/v201505/CustomTargetingService/DeleteCustomTargetingValues.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the CustomTargetingService. - $customTargetingService = - $user->GetService('CustomTargetingService', 'v201405'); - - // 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'; + $customTargetingService = $user->GetService('CustomTargetingService', + 'v201505'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('keyId' => new NumberValue($keyId))); + // Create a statement to select a single custom targeting value by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingValueId); - $offset = 0; - $valueIds = array(); + // Default for total result set size. + $totalResultSetSize = 0; 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); + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; foreach ($page->results as $customTargetingValue) { - $valueIds[] = $customTargetingValue->id; + printf("%d) Custom targeting value with ID %d, name '%s', and display " + . "name '%s' will be deleted.\n", $i++, $customTargetingValue->id, + $customTargetingValue->name, $customTargetingValue->displayName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); printf("Number of custom targeting values to be deleted: %d\n", - sizeof($valueIds)); + $totalResultSetSize); - if (sizeof($valueIds) > 0) { - // Create action statement. - $filterStatementText .= sprintf(' AND id IN (%s)', implode(',', $valueIds)); - $filterStatement = new Statement($filterStatementText, $vars); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeleteCustomTargetingValues(); // Perform action. $result = $customTargetingService->performCustomTargetingValueAction( - $action, $filterStatement); + $action, $statementBuilder->ToStatement()); // 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"; + printf("No custom targeting values were deleted.\n"); } } } catch (OAuth2Exception $e) { @@ -115,6 +113,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php b/examples/Dfp/v201505/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php new file mode 100755 index 000000000..efb32950e --- /dev/null +++ b/examples/Dfp/v201505/CustomTargetingService/GetAllCustomTargetingKeysAndValues.php @@ -0,0 +1,151 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201505'); + + // Get all custom targeting keys. + $customTargetingKeys = getAllCustomTargetingKeyIds($user); + + // Create a statement to get all custom targeting values for a custom + // targeting key. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('customTargetingKeyId = :customTargetingKeyId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $totalResultsCounter = 0; + + foreach ($customTargetingKeys as $customTargetingKey) { + // Set the custom targeting key ID to select from. + $statementBuilder->WithBindVariableValue('customTargetingKeyId', + $customTargetingKey); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingValue) { + printf("%d) Custom targeting value with ID %d, name '%s', display " + . "name '%s', and belonging to key with ID %d was found.\n", + $totalResultSetSize++, + $customTargetingValue->id, + $customTargetingValue->name, + $customTargetingValue->displayName, + $customTargetingValue->customTargetingKeyId); + } + } + + $statementBuilder->IncreaseOffsetBy( + StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + } + + printf("Number of results found: %d\n", $totalResultSetSize); +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + +/** + * Gets all custom targeting key IDs. + */ +function getAllCustomTargetingKeyIds($user) { + $customTargetingKeyIds = array(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201505'); + + // Create a statement to get all custom targeting keys. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingKey) { + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' was found.\n", $i++, $customTargetingKey->id, + $customTargetingKey->name, $customTargetingKey->displayName); + $customTargetingKeyIds[] = $customTargetingKey->id; + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + return $customTargetingKeyIds; +} + diff --git a/examples/Dfp/v201505/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php b/examples/Dfp/v201505/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php new file mode 100755 index 000000000..523992d02 --- /dev/null +++ b/examples/Dfp/v201505/CustomTargetingService/GetPredefinedCustomTargetingKeysAndValues.php @@ -0,0 +1,157 @@ +LogDefaults(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201505'); + + // Get all predefined custom targeting keys. + $customTargetingKeyIds = getPredefinedCustomTargetingKeyIds($user); + + // Create a statement to get all custom targeting values for a custom + // targeting key. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('customTargetingKeyId = :customTargetingKeyId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $totalResultsCounter = 0; + + foreach ($customTargetingKeyIds as $customTargetingKeyId) { + // Set the custom targeting key ID to select from. + $statementBuilder->WithBindVariableValue('customTargetingKeyId', + $customTargetingKeyId); + + // Default for total result set size and offset. + $totalResultSetSize = 0; + $statementBuilder->Offset(0); + + do { + // Get custom targeting values by statement. + $page = $customTargetingService->getCustomTargetingValuesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + foreach ($page->results as $customTargetingValue) { + printf("%d) Custom targeting value with ID %d, belonging to key with " + ."ID %d, name '%s', and display name '%s' was found.\n", + $totalResultsCounter++, + $customTargetingValue->id, + $customTargetingValue->customTargetingKeyId, + $customTargetingValue->name, + $customTargetingValue->displayName); + } + } + + $statementBuilder->IncreaseOffsetBy( + StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $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()); +} + +/** + * Gets predefined custom targeting key IDs. + */ +function getPredefinedCustomTargetingKeyIds($user) { + $customTargetingKeyIds = array(); + + // Get the CustomTargetingService. + $customTargetingService = + $user->GetService('CustomTargetingService', 'v201505'); + + // Create a statement to get predefined custom targeting keys. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'PREDEFINED'); + + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get custom targeting keys by statement. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $customTargetingKey) { + printf("%d) Custom targeting key with ID %d, name '%s', and display " + . "name '%s' was found.\n", + $i++, + $customTargetingKey->id, + $customTargetingKey->name, + $customTargetingKey->displayName); + $customTargetingKeyIds[] = $customTargetingKey->id; + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + return $customTargetingKeyIds; +} + diff --git a/examples/Dfp/v201405/CustomTargetingService/UpdateCustomTargetingKeysExample.php b/examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingKeys.php similarity index 50% rename from examples/Dfp/v201405/CustomTargetingService/UpdateCustomTargetingKeysExample.php rename to examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingKeys.php index 28ef4bccd..e9f72dc4c 100755 --- a/examples/Dfp/v201405/CustomTargetingService/UpdateCustomTargetingKeysExample.php +++ b/examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingKeys.php @@ -1,15 +1,15 @@ GetService('CustomTargetingService', 'v201405'); + $user->GetService('CustomTargetingService', 'v201505'); - // Create a statement to get all custom targeting keys. - $filterStatement = new Statement('LIMIT 500'); + // Create a statement to select a single custom targeting key by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingKeyId); - // Get custom targeting keys by statement. - $page = $customTargetingService->getCustomTargetingKeysByStatement( - $filterStatement); + // Default for total result set size. + $totalResultSetSize = 0; - if (isset($page->results)) { - $keys = $page->results; + // Get the custom targeting key. + $page = $customTargetingService->getCustomTargetingKeysByStatement( + $statementBuilder->ToStatement()); + $customTargetingKey = $page->results[0]; - // 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 key's display name. + $customTargetingKey->displayName = 'New custom targeting key display name.'; - // Update the custom targeting keys on the server. - $keys = $customTargetingService->updateCustomTargetingKeys($keys); + // Update the custom targeting key on the server. + $customTargetingKeys = + $customTargetingService-> + updateCustomTargetingKeys(array($customTargetingKey)); - // 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"; + foreach ($customTargetingKeys as $updatedCustomTargetingKey) { + printf("Custom targeting key with ID %d, name '%s', and display name '%s' " + . "was updated.\n", $updatedCustomTargetingKey->id, + $updatedCustomTargetingKey->name, + $updatedCustomTargetingKey->displayName); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php b/examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingValues.php similarity index 50% rename from examples/Dfp/v201405/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php rename to examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingValues.php index 10fd812f6..dcce9f3e4 100755 --- a/examples/Dfp/v201405/CustomTargetingService/GetCustomTargetingValuesByStatementExample.php +++ b/examples/Dfp/v201505/CustomTargetingService/UpdateCustomTargetingValues.php @@ -1,16 +1,15 @@ GetService('CustomTargetingService', 'v201405'); - - // Set the ID of the custom targeting key to get custom targeting values for. - $keyId = 'INSERT_CUSTOM_TARGETING_KEY_ID_HERE'; + $user->GetService('CustomTargetingService', 'v201505'); - // 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)))); + // Create a statement to select a single custom targeting value by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $customTargetingValueId); - // Get custom targeting keys by statement. + // Get the custom targeting value. $page = $customTargetingService->getCustomTargetingValuesByStatement( - $filterStatement); + $statementBuilder->ToStatement()); + $customTargetingValue = $page->results[0]; - // 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++; - } - } + // Update the custom targeting value's display name. + $customTargetingValue->displayName = + 'New custom targeting value display name.'; - printf("Number of results found: %d\n", sizeof($page->results)); + // Update the custom targeting value on the server. + $customTargetingValues = + $customTargetingService->updateCustomTargetingValues( + array($customTargetingValue)); + + foreach ($customTargetingValues as $updatedCustomTargetingValue) { + printf("Custom targeting value with ID %d, name '%s', and display name " + . "'%s' was updated.\n", $updatedCustomTargetingValue->id, + $updatedCustomTargetingValue->name, + $updatedCustomTargetingValue->displayName); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/ExchangeRateService/CreateExchangeRates.php b/examples/Dfp/v201505/ExchangeRateService/CreateExchangeRates.php new file mode 100755 index 000000000..9e8c81299 --- /dev/null +++ b/examples/Dfp/v201505/ExchangeRateService/CreateExchangeRates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201505'); + + // Create an exchange rate. + $exchangeRate = new ExchangeRate(); + + // Set the currency code. + $exchangeRate->currencyCode = 'AUD'; + + // Set the direction of the conversion (from the network currency). + $exchangeRate->direction = 'FROM_NETWORK'; + + // Set the conversion value as 1.5 (this value is multiplied by + // 10,000,000,000) + $exchangeRate->exchangeRate = 15000000000; + + // Do not refresh exchange rate from Google data. Update manually only. + $exchangeRate->refreshRate = 'FIXED'; + + // Create the exchange rate on the server. + $exchangeRates = + $exchangeRateService->createExchangeRates(array($exchangeRate)); + + foreach ($exchangeRates as $createdExchangeRate) { + printf("An exchange rate with ID %d, currency code '%s', direction '%s', " + . "and exchange rate %.2f was created.\n", + $createdExchangeRate->id, + $createdExchangeRate->currencyCode, + $createdExchangeRate->direction, + $createdExchangeRate->exchangeRate / 10000000000 + ); + } +} 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/v201505/ExchangeRateService/GetAllExchangeRates.php b/examples/Dfp/v201505/ExchangeRateService/GetAllExchangeRates.php new file mode 100755 index 000000000..cb0a1ace6 --- /dev/null +++ b/examples/Dfp/v201505/ExchangeRateService/GetAllExchangeRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201505'); + + // Create a statement to select all exchange rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get exchange rates by statement. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $exchangeRate) { + printf("%d) Exchange rate with ID %d, currency code '%s', direction " + . "'%s', and exchange rate %.2f was found.\n", + $i++, + $exchangeRate->id, + $exchangeRate->currencyCode, + $exchangeRate->direction, + $exchangeRate->exchangeRate / 10000000000 + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ExchangeRateService/GetExchangeRatesForCurrencyCode.php b/examples/Dfp/v201505/ExchangeRateService/GetExchangeRatesForCurrencyCode.php new file mode 100755 index 000000000..4525cb6a6 --- /dev/null +++ b/examples/Dfp/v201505/ExchangeRateService/GetExchangeRatesForCurrencyCode.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201505'); + + // Create a statement to select only exchange rates for a specific currency + // code. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('currencyCode = :currencyCode') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('currencyCode', $currencyCode); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get exchange rates by statement. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $exchangeRate) { + printf("%d) Exchange rate with ID %d, currency code '%s', direction " + . "'%s', and exchange rate %.2f was found.\n", + $i++, + $exchangeRate->id, + $exchangeRate->currencyCode, + $exchangeRate->direction, + $exchangeRate->exchangeRate / 10000000000 + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ExchangeRateService/UpdateExchangeRates.php b/examples/Dfp/v201505/ExchangeRateService/UpdateExchangeRates.php new file mode 100755 index 000000000..e5dc5fe12 --- /dev/null +++ b/examples/Dfp/v201505/ExchangeRateService/UpdateExchangeRates.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ExchangeRateService. + $exchangeRateService = $user->GetService('ExchangeRateService', 'v201505'); + + // Create a statement to select a single exchange rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id and refreshRate = :refreshRate') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $exchangeRateId) + ->WithBindVariableValue('refreshRate', 'FIXED'); + + // Get the exchange rate. + $page = $exchangeRateService->getExchangeRatesByStatement( + $statementBuilder->ToStatement()); + $exchangeRate = $page->results[0]; + + // Update the exchange rate value to 1.5. + $exchangeRate->exchangeRate = 15000000000; + + // Update the exchange rate on the server. + $exchangeRates = + $exchangeRateService->updateExchangeRates(array($exchangeRate)); + + foreach ($exchangeRates as $updatedExchangeRate) { + printf("Exchange rate with ID %d, currency code '%s', direction '%s', and " + . "exchange rate %.2f was updated.\n", + $updatedExchangeRate->id, + $updatedExchangeRate->currencyCode, + $updatedExchangeRate->direction, + $updatedExchangeRate->exchangeRate / 10000000000 + ); + } +} 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/v201405/ForecastService/GetForecastExample.php b/examples/Dfp/v201505/ForecastService/GetAvailabilityForecast.php similarity index 52% rename from examples/Dfp/v201405/ForecastService/GetForecastExample.php rename to examples/Dfp/v201505/ForecastService/GetAvailabilityForecast.php index 3996fcb8b..25eedf85f 100755 --- a/examples/Dfp/v201405/ForecastService/GetForecastExample.php +++ b/examples/Dfp/v201505/ForecastService/GetAvailabilityForecast.php @@ -1,13 +1,17 @@ LogDefaults(); // Get the ForecastService. - $forecastService = $user->GetService('ForecastService', 'v201405'); + $forecastService = $user->GetService('ForecastService', 'v201505'); - // Set the placement ID that the prospective line item will target. - $targetPlacementId = 'INSERT_PLACEMENT_ID_HERE'; + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201505'); - // Create prospective line item. - $lineItem = new LineItem(); - $lineItem->lineItemType = 'SPONSORSHIP'; + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; // Create inventory targeting. $inventoryTargeting = new InventoryTargeting(); - $inventoryTargeting->targetedPlacementIds = array($targetPlacementId); - // Set targeting for line item. + // Create ad unit targeting for the root ad unit. + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create targeting. $targeting = new Targeting(); $targeting->inventoryTargeting = $inventoryTargeting; + + // Create a line item. + $lineItem = new LineItem(); $lineItem->targeting = $targeting; + $lineItem->lineItemType = 'SPONSORSHIP'; + + // Set the roadblocking type. + $lineItem->roadblockingType = 'ONE_OR_MORE'; + + // Set the creative rotation type. + $lineItem->creativeRotationType = 'OPTIMIZED'; + + // Create the creative placeholder size. + $size = new Size(); + $size->width = 300; + $size->height = 250; + $size->isAspectRatio = false; // Create the creative placeholder. $creativePlaceholder = new CreativePlaceholder(); - $creativePlaceholder->size = new Size(300, 250, FALSE); + $creativePlaceholder->size = $size; // 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. + // Set the length of the line item to run. $lineItem->startDateTimeType = 'IMMEDIATELY'; - $lineItem->endDateTime = - DateTimeUtils::GetDfpDateTime(new DateTime('+1 week')); + $lineItem->endDateTime = DateTimeUtils::ToDfpDateTime( + new DateTime('+30 days', new DateTimeZone('America/New_York'))); + + // Set the cost type. + $lineItem->costType = 'CPM'; // Set the line item to use 50% of the impressions. $goal = new Goal(); - $goal->units = 50; + $goal->goalType = 'DAILY'; $goal->unitType = 'IMPRESSIONS'; + $goal->units = 50; $lineItem->primaryGoal = $goal; - // Set the cost type to match the unit type. - $lineItem->costType = 'CPM'; + // Get forecast for prospective line item. + $prospectiveLineItem = new ProspectiveLineItem(); + $prospectiveLineItem->lineItem = $lineItem; + $options = new AvailabilityForecastOptions(); + $options->includeContendingLineItems = true; + $options->includeTargetingCriteriaBreakdown = true; - // Get forecast for line item. - $forecast = $forecastService->getForecast($lineItem); + $forecast = + $forecastService->getAvailabilityForecast($prospectiveLineItem, $options); // 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)) { + if ($matchedUnits !== 0) { + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + printf("%.2d%% %s available.\n", $percentAvailableUnits, $unitType); + } + + if ($matchedUnits !== 0) { $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; - printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + printf("%.2d%% %s possible.\n", $percentPossibleUnits, $unitType); } printf("%d contending line items.\n", count($forecast->contendingLineItems)); diff --git a/examples/Dfp/v201405/ForecastService/GetForecastByIdExample.php b/examples/Dfp/v201505/ForecastService/GetAvailabilityForecastForLineItem.php similarity index 73% rename from examples/Dfp/v201405/ForecastService/GetForecastByIdExample.php rename to examples/Dfp/v201505/ForecastService/GetAvailabilityForecastForLineItem.php index a06fed158..f3c3670e9 100755 --- a/examples/Dfp/v201405/ForecastService/GetForecastByIdExample.php +++ b/examples/Dfp/v201505/ForecastService/GetAvailabilityForecastForLineItem.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the ForecastService. - $forecastService = $user->GetService('ForecastService', 'v201405'); - - // Set the line item to get a forecast for. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $forecastService = $user->GetService('ForecastService', 'v201505'); // Get forecast for line item. - $forecast = $forecastService->getForecastById($lineItemId); + $options = new AvailabilityForecastOptions(); + $options->includeContendingLineItems = true; + $options->includeTargetingCriteriaBreakdown = true; + $forecast = $forecastService->getAvailabilityForecastById( + $lineItemId, $options); // 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)) { + if ($matchedUnits !== 0) { + $percentAvailableUnits = $forecast->availableUnits / $matchedUnits * 100; + printf("%.2d%% %s available.\n", $percentAvailableUnits, $unitType); + } + + if ($matchedUnits !== 0) { $percentPossibleUnits = $forecast->possibleUnits / $matchedUnits * 100; - printf("%d%% %s possible.\n", $percentPossibleUnits, $unitType); + printf("%.2d%% %s possible.\n", $percentPossibleUnits, $unitType); } printf("%d contending line items.\n", count($forecast->contendingLineItems)); diff --git a/examples/Dfp/v201405/ReportService/DisplayReportExample.php b/examples/Dfp/v201505/ForecastService/GetDeliveryForecastForLineItems.php similarity index 61% rename from examples/Dfp/v201405/ReportService/DisplayReportExample.php rename to examples/Dfp/v201505/ForecastService/GetDeliveryForecastForLineItems.php index 12f959b6c..0fefc5da8 100755 --- a/examples/Dfp/v201405/ReportService/DisplayReportExample.php +++ b/examples/Dfp/v201505/ForecastService/GetDeliveryForecastForLineItems.php @@ -1,10 +1,9 @@ LogDefaults(); - // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); - - // 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; + // Get the ForecastService. + $forecastService = $user->GetService('ForecastService', 'v201505'); - $downloadUrl = $reportService->getReportDownloadUrlWithOptions($reportJobId, - $reportDownloadOptions); + $options = new DeliveryForecastOptions(); + $forecast = $forecastService->getDeliveryForecastByIds( + array($lineItemId1, $lineItemId2), $options); - printf("Downloading report from URL '%s'.\n", $downloadUrl); - $report = ReportUtils::DownloadReport($downloadUrl); - printf("\n%s\n", $report); + foreach ($forecast->lineItemDeliveryForecasts as $lineItemForecast) { + $unitType = strtolower($lineItemForecast->unitType); + printf("Forecast for line item %d:\n", $lineItemForecast->lineItemId); + printf("\t%d %s matched\n", $lineItemForecast->matchedUnits, $unitType); + printf("\t%d %s delivered\n", $lineItemForecast->deliveredUnits, $unitType); + printf("\t%d %s predicted\n", + $lineItemForecast->predictedDeliveryUnits, $unitType); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201505/InventoryService/ArchiveAdUnits.php b/examples/Dfp/v201505/InventoryService/ArchiveAdUnits.php new file mode 100755 index 000000000..1176449bb --- /dev/null +++ b/examples/Dfp/v201505/InventoryService/ArchiveAdUnits.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201505'); + + // Create a statement to select ad units under the parent ad unit and the + // parent ad unit. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('parentId = :parentId or id = :parentId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('parentId', $parentAdUnitId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Ad unit with ID %d, and name '%s' will be archived.\n", + $i++, $adUnit->id, $adUnit->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of ad units to be archived: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ArchiveAdUnits(); + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of ad units archived: %d\n", $result->numChanges); + } else { + printf("No ad units were archived.\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/v201505/InventoryService/AssignAdUnitsToPlacement.php b/examples/Dfp/v201505/InventoryService/AssignAdUnitsToPlacement.php new file mode 100755 index 000000000..2de936579 --- /dev/null +++ b/examples/Dfp/v201505/InventoryService/AssignAdUnitsToPlacement.php @@ -0,0 +1,122 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201505'); + + // Create a statement to select a single ad unit by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $adUnitId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Ad unit with ID %d, and name '%s' will be added to " + . "placement ID %d.\n", $i++, $adUnit->id, $adUnit->name, + $placementId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of ad units to be added to the placement: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new AssignAdUnitsToPlacement(); + $action->placementId = $placementId; + + // Perform action. + $result = $inventoryService->performAdUnitAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of ad units added to the placeement: %d\n", + $result->numChanges); + } else { + printf("No ad units were added to the placement.\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/v201405/InventoryService/CreateAdUnitsExample.php b/examples/Dfp/v201505/InventoryService/CreateAdUnits.php similarity index 94% rename from examples/Dfp/v201405/InventoryService/CreateAdUnitsExample.php rename to examples/Dfp/v201505/InventoryService/CreateAdUnits.php index 57598a07b..63f77fa94 100755 --- a/examples/Dfp/v201405/InventoryService/CreateAdUnitsExample.php +++ b/examples/Dfp/v201505/InventoryService/CreateAdUnits.php @@ -1,8 +1,8 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201405/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201505/InventoryService/CreateMobileAdUnit.php similarity index 94% rename from examples/Dfp/v201405/InventoryService/CreateMobileAdUnitExample.php rename to examples/Dfp/v201505/InventoryService/CreateMobileAdUnit.php index e7655c6ca..52c1a1935 100755 --- a/examples/Dfp/v201405/InventoryService/CreateMobileAdUnitExample.php +++ b/examples/Dfp/v201505/InventoryService/CreateMobileAdUnit.php @@ -2,8 +2,8 @@ /** * This example creates a new mobile ad unit under a the effective root ad unit. * Mobile features need to be enabled on your account to use mobile targeting. - * To determine which ad units exist, run GetInventoryTreeExample.php or - * GetAllAdUnitsExample.php. + * To determine which ad units exist, run GetInventoryTree.php or + * GetAllAdUnits.php. * * Tags: NetworkService.getCurrentNetwork * Tags: InventoryService.createAdUnits @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,10 +52,10 @@ $user->LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201405/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201505/InventoryService/CreateVideoAdUnit.php similarity index 95% rename from examples/Dfp/v201405/InventoryService/CreateVideoAdUnitExample.php rename to examples/Dfp/v201505/InventoryService/CreateVideoAdUnit.php index cbfc1b358..d6eca7c95 100755 --- a/examples/Dfp/v201405/InventoryService/CreateVideoAdUnitExample.php +++ b/examples/Dfp/v201505/InventoryService/CreateVideoAdUnit.php @@ -2,8 +2,8 @@ /** * This example creates a new video ad unit under the effective root ad unit. * This feature is only available to DFP premium solution networks. To determine - * which ad units exist, run GetInventoryTreeExample.php or - * GetAllAdUnitsExample.php. + * which ad units exist, run GetInventoryTree.php or + * GetAllAdUnits.php. * * Tags: NetworkService.getCurrentNetwork * Tags: InventoryService.createAdUnits @@ -25,7 +25,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -52,10 +52,10 @@ $user->LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Get the effective root ad unit's ID for all ad units to be created under. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201405/InventoryService/GetAdUnitSizesExample.php b/examples/Dfp/v201505/InventoryService/GetAllAdUnitSizes.php similarity index 66% rename from examples/Dfp/v201405/InventoryService/GetAdUnitSizesExample.php rename to examples/Dfp/v201505/InventoryService/GetAllAdUnitSizes.php index e97efcdaa..9d7a45ccd 100755 --- a/examples/Dfp/v201405/InventoryService/GetAdUnitSizesExample.php +++ b/examples/Dfp/v201505/InventoryService/GetAllAdUnitSizes.php @@ -1,12 +1,12 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); - // 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); + // Create a statement to select all ad unit sizes. + $statementBuilder = new StatementBuilder(); // Get all ad unit sizes by statement. - $adUnitSizes = $inventoryService->getAdUnitSizesByStatement($filterStatement); + $adUnitSizes = $inventoryService->getAdUnitSizesByStatement( + $statementBuilder->ToStatement()); // Display results. - $i = 0; - foreach ($adUnitSizes as $adUnitSize) { - printf("%d) Web ad unit size of dimensions %s was found.\n", $i, + foreach ($adUnitSizes as $i=>$adUnitSize) { + printf("%d) Ad unit size of dimensions %s was found.\n", $i, $adUnitSize->fullDisplayString); - $i++; } - printf ("Number of ad unit sizes found: %d\n", count($adUnitSizes)); + 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"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/InventoryService/GetAllAdUnitsExample.php b/examples/Dfp/v201505/InventoryService/GetAllAdUnits.php similarity index 62% rename from examples/Dfp/v201405/InventoryService/GetAllAdUnitsExample.php rename to examples/Dfp/v201505/InventoryService/GetAllAdUnits.php index 39c8baa4d..90f71ea91 100755 --- a/examples/Dfp/v201405/InventoryService/GetAllAdUnitsExample.php +++ b/examples/Dfp/v201505/InventoryService/GetAllAdUnits.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); - // Set defaults for page and statement. - $page = new AdUnitPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all ad units. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; - // Get creatives by statement. - $page = $inventoryService->getAdUnitsByStatement($filterStatement); + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Ad unit with ID %s, name '%s', and status %s was found.\n", + $i++, $adUnit->id, $adUnit->name, $adUnit->status); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/InventoryService/GetInventoryTreeExample.php b/examples/Dfp/v201505/InventoryService/GetInventoryTree.php similarity index 99% rename from examples/Dfp/v201405/InventoryService/GetInventoryTreeExample.php rename to examples/Dfp/v201505/InventoryService/GetInventoryTree.php index 032a8973d..3032b1f2d 100755 --- a/examples/Dfp/v201405/InventoryService/GetInventoryTreeExample.php +++ b/examples/Dfp/v201505/InventoryService/GetInventoryTree.php @@ -22,7 +22,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -49,7 +49,7 @@ */ function GetAllAdUnits(DfpUser $user) { // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Create array to hold all ad units. $adUnits = array(); @@ -85,7 +85,7 @@ function GetAllAdUnits(DfpUser $user) { */ function FindRootAdUnit(DfpUser $user) { // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Create a statement to only select image creatives. $filterStatement = new Statement("WHERE parentId IS NULL LIMIT 1"); diff --git a/examples/Dfp/v201505/InventoryService/GetTopLevelAdUnits.php b/examples/Dfp/v201505/InventoryService/GetTopLevelAdUnits.php new file mode 100755 index 000000000..e88842b7f --- /dev/null +++ b/examples/Dfp/v201505/InventoryService/GetTopLevelAdUnits.php @@ -0,0 +1,98 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201505'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201505'); + + // Set the parent ad unit's ID for all children ad units to be fetched from. + $parentAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create a statement to select ad units under the parent ad unit. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('parentId = :parentId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('parentId', $parentAdUnitId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get ad units by statement. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Ad unit with ID %s, name '%s', and status %s was found.\n", + $i++, $adUnit->id, $adUnit->name, $adUnit->status); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/InventoryService/UpdateAdUnits.php b/examples/Dfp/v201505/InventoryService/UpdateAdUnits.php new file mode 100755 index 000000000..e1d1cd747 --- /dev/null +++ b/examples/Dfp/v201505/InventoryService/UpdateAdUnits.php @@ -0,0 +1,103 @@ +LogDefaults(); + + // Get the InventoryService. + $inventoryService = $user->GetService('InventoryService', 'v201505'); + + // Create a statement to select a single ad unit by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $adUnitId); + + // Get the ad unit. + $page = $inventoryService->getAdUnitsByStatement( + $statementBuilder->ToStatement()); + $adUnit = $page->results[0]; + + // Create a 480x60 ad unit size. + $size = new Size(); + $size->width = 480; + $size->height = 60; + + $adUnitSize = new AdUnitSize(); + $adUnitSize->size = size; + $adUnitSize->environmentType = 'BROWSER'; + + // Update the ad unit sizes. + $adUnit->adUnitSizes[] = $adUnitSize; + + // Update the ad unit on the server. + $adUnits = $inventoryService->updateAdUnits(array($adUnit)); + + foreach ($adUnits as $updatedAdUnit) { + $adUnitSizesStrings = array(); + foreach ($updatedAdUnit->adUnitSizes as $updatedAdUnitSize) { + $adUnitSizesStrings[] = sprintf('%dx%d', $updatedAdUnitSize->size->width, + $updatedAdUnitSize->size->height); + } + printf("Ad unit with ID %d, name '%s', and sizes [%s] was updated.\n", + $updatedAdUnit->id, $updatedAdUnit->name, + implode(',', $adUnitSizesStrings)); + } +} 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/v201405/LabelService/CreateLabelsExample.php b/examples/Dfp/v201505/LabelService/CreateLabels.php similarity index 94% rename from examples/Dfp/v201405/LabelService/CreateLabelsExample.php rename to examples/Dfp/v201505/LabelService/CreateLabels.php index 61516b740..a5d36f015 100755 --- a/examples/Dfp/v201405/LabelService/CreateLabelsExample.php +++ b/examples/Dfp/v201505/LabelService/CreateLabels.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201405'); + $labelService = $user->GetService('LabelService', 'v201505'); // Create an array to store local label objects. $labels = array(); diff --git a/examples/Dfp/v201505/LabelService/DeactivateLabels.php b/examples/Dfp/v201505/LabelService/DeactivateLabels.php new file mode 100755 index 000000000..f3bb921ab --- /dev/null +++ b/examples/Dfp/v201505/LabelService/DeactivateLabels.php @@ -0,0 +1,114 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201505'); + + // Create a statement to select a single label by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $labelId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get labels by statement. + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID %d, and name '%s' will be deactivated.\n", + $i++, $label->id, $label->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of labels to be deactivated: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivateLabels(); + + // Perform action. + $result = $labelService->performLabelAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of labels deactivated: %d\n", $result->numChanges); + } else { + printf("No labels were deactivated.\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/v201505/LabelService/GetActiveLabels.php b/examples/Dfp/v201505/LabelService/GetActiveLabels.php new file mode 100755 index 000000000..b046f205f --- /dev/null +++ b/examples/Dfp/v201505/LabelService/GetActiveLabels.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the LabelService. + $labelService = $user->GetService('LabelService', 'v201505'); + + // Create a statement to select only active labels. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('isActive = :isActive') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('isActive', true); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get labels by statement. + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $label) { + printf("%d) Label with ID %d, and name '%s' was found.\n", $i++, + $label->id, $label->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/LabelService/GetAllLabelsExample.php b/examples/Dfp/v201505/LabelService/GetAllLabels.php similarity index 63% rename from examples/Dfp/v201405/LabelService/GetAllLabelsExample.php rename to examples/Dfp/v201505/LabelService/GetAllLabels.php index 6483f7f20..75fc3b0c0 100755 --- a/examples/Dfp/v201405/LabelService/GetAllLabelsExample.php +++ b/examples/Dfp/v201505/LabelService/GetAllLabels.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201405'); + $labelService = $user->GetService('LabelService', 'v201505'); - // Set defaults for page and statement. - $page = new LabelPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all labels. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all labels. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); + $page = $labelService->getLabelsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Label with ID %d, and name '%s' was found.\n", $i++, + $label->id, $label->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/LabelService/GetLabelsByStatementExample.php b/examples/Dfp/v201505/LabelService/UpdateLabels.php similarity index 57% rename from examples/Dfp/v201405/LabelService/GetLabelsByStatementExample.php rename to examples/Dfp/v201505/LabelService/UpdateLabels.php index 66527ddc8..c8c764543 100755 --- a/examples/Dfp/v201405/LabelService/GetLabelsByStatementExample.php +++ b/examples/Dfp/v201505/LabelService/UpdateLabels.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the LabelService. - $labelService = $user->GetService('LabelService', 'v201405'); + $labelService = $user->GetService('LabelService', 'v201505'); - // Create bind variables. - $vars = MapUtils::GetMapEntries(array()); + // Create a statement to select a single label by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $labelId); - // Create a statement to select labels ordered by name. - $filterStatement = - new Statement("ORDER BY name LIMIT 500", $vars); + // Get the label. + $page = $labelService->getLabelsByStatement($statementBuilder->ToStatement()); + $label = $page->results[0]; - // Get labels by statement. - $page = $labelService->getLabelsByStatement($filterStatement); + // Update the label description. + $label->description = 'New label description.'; - // 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++; - } - } + // Update the label on the server. + $labels = $labelService->updateLabels(array($label)); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + foreach ($labels as $updatedLabel) { + printf("Label with ID %d, name '%s' was updated.\n", $updatedLabel->id, + $updatedLabel->name); + } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/LicaService/CreateLicasExample.php b/examples/Dfp/v201505/LineItemCreativeAssociationService/CreateLicas.php similarity index 98% rename from examples/Dfp/v201405/LicaService/CreateLicasExample.php rename to examples/Dfp/v201505/LineItemCreativeAssociationService/CreateLicas.php index 962cf3bf0..195983f98 100755 --- a/examples/Dfp/v201405/LicaService/CreateLicasExample.php +++ b/examples/Dfp/v201505/LineItemCreativeAssociationService/CreateLicas.php @@ -6,7 +6,7 @@ * be used for more than one line item. For premium solution networks, the * creative ids can represent any creatvie. To copy creatives, run * CopyImageCreatives.php. To determine which LICAs exist, run - * GetAllLicasExample.php. + * GetAllLicas.php. * * Tags: LineItemCreativeAssociationService.createLineItemCreativeAssociations * @@ -27,7 +27,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -56,7 +56,7 @@ // Get the LineItemCreativeAssociationService. $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201405'); + $user->GetService('LineItemCreativeAssociationService', 'v201505'); // Set the line item ID and creative ID to associate // them with. diff --git a/examples/Dfp/v201405/LicaService/DeactivateLicasExample.php b/examples/Dfp/v201505/LineItemCreativeAssociationService/DeactivateLicas.php similarity index 53% rename from examples/Dfp/v201405/LicaService/DeactivateLicasExample.php rename to examples/Dfp/v201505/LineItemCreativeAssociationService/DeactivateLicas.php index df516f000..94eabd661 100755 --- a/examples/Dfp/v201405/LicaService/DeactivateLicasExample.php +++ b/examples/Dfp/v201505/LineItemCreativeAssociationService/DeactivateLicas.php @@ -1,14 +1,14 @@ LogDefaults(); // Get the LineItemCreativeAssociationService. - $licaService = - $user->GetService('LineItemCreativeAssociationService', 'v201405'); + $licaService = $user->GetService('LineItemCreativeAssociationService', + 'v201505'); - // Set the line item to get LICAs by. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + // Create a statement to select all LICAs for a line item. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemId = :lineItemId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemId', $lineItemId); - // 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; + // Default for total result set size. + $totalResultSetSize = 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); + $statementBuilder->ToStatement()); // Display results. - $creativeIds = array(); if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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; + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, and creative set ID %d will " + . "be deactivated.\n", $i++, $lica->lineItemId, + $lica->creativeSetId); + } else { + printf("%d) LICA with line item ID %d, and creative ID %d will be " + . "deactivated.\n", $i++, $lica->lineItemId, $lica->creativeId); + } } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of LICAs to be deactivated: ' . sizeof($lica->creativeId) - . "\n"; + printf("Number of LICAs to be deactivated: %d\n", $totalResultSetSize); - if (sizeof($lica->creativeId) > 0) { - // Create action statement. - $filterStatementText = sprintf( - 'WHERE lineItemId = :lineItemId AND creativeId IN (%s)', - implode(',', $creativeIds)); - $filterStatement = new Statement($filterStatementText, $vars); + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); // Create action. $action = new DeactivateLineItemCreativeAssociations(); // Perform action. $result = $licaService->performLineItemCreativeAssociationAction($action, - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { - print 'Number of LICAs deactivated: ' . $result->numChanges . "\n"; + printf("Number of LICAs deactivated: %d\n", $result->numChanges); } else { - print "No LICAs were deactivated.\n"; + printf("No LICAs were deactivated.\n"); } } } catch (OAuth2Exception $e) { @@ -122,6 +116,6 @@ } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/LicaService/GetAllLicasExample.php b/examples/Dfp/v201505/LineItemCreativeAssociationService/GetAllLicas.php similarity index 63% rename from examples/Dfp/v201405/LicaService/GetAllLicasExample.php rename to examples/Dfp/v201505/LineItemCreativeAssociationService/GetAllLicas.php index 6fe2a9522..e76dfd980 100755 --- a/examples/Dfp/v201405/LicaService/GetAllLicasExample.php +++ b/examples/Dfp/v201505/LineItemCreativeAssociationService/GetAllLicas.php @@ -1,14 +1,13 @@ GetService('LineItemCreativeAssociationService', 'v201405'); + $user->GetService('LineItemCreativeAssociationService', 'v201505'); - // Set defaults for page and statement. - $page = new LineItemCreativeAssociationPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all LICAs. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all LICAs. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get LICAs by statement. $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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); + printf("%d) LICA with line item ID %d, and creative set ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeSetId); } 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); + printf("%d) LICA with line item ID %d, and creative ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeId); } - $i++; } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/LineItemCreativeAssociationService/GetLicasForLineItem.php b/examples/Dfp/v201505/LineItemCreativeAssociationService/GetLicasForLineItem.php new file mode 100755 index 000000000..e7bd93037 --- /dev/null +++ b/examples/Dfp/v201505/LineItemCreativeAssociationService/GetLicasForLineItem.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the LineItemCreativeAssociationService. + $lineItemCreativeAssociationService = $user->GetService( + 'LineItemCreativeAssociationService', 'v201505'); + + // Create a statement to select all LICAs for a given line item. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemId = :lineItemId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemId', $lineItemId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get LICAs by statement. + $page = $lineItemCreativeAssociationService-> + getLineItemCreativeAssociationsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $lica) { + if (isset($lica->creativeSetId)) { + printf("%d) LICA with line item ID %d, and creative set ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeSetId); + } else { + printf("%d) LICA with line item ID %d, and creative ID %d was " + . "found.\n", $i++, $lica->lineItemId, $lica->creativeId); + } + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/LicaService/UpdateLicasExample.php b/examples/Dfp/v201505/LineItemCreativeAssociationService/UpdateLicas.php similarity index 54% rename from examples/Dfp/v201405/LicaService/UpdateLicasExample.php rename to examples/Dfp/v201505/LineItemCreativeAssociationService/UpdateLicas.php index af2c62382..dafb2316d 100755 --- a/examples/Dfp/v201405/LicaService/UpdateLicasExample.php +++ b/examples/Dfp/v201505/LineItemCreativeAssociationService/UpdateLicas.php @@ -1,14 +1,14 @@ GetService('LineItemCreativeAssociationService', 'v201405'); - - // Create a statement to get all LICAs. - $filterStatement = new Statement("LIMIT 500"); + $user->GetService('LineItemCreativeAssociationService', 'v201505'); - // Get LICAs by statement. - $page = $licaService->getLineItemCreativeAssociationsByStatement( - $filterStatement); + // Create a statement to select a single LICA by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where( + 'lineItemId = :lineItemId AND creativeId = :creativeId') + ->OrderBy('lineItemId ASC, creativeId ASC') + ->Limit(1) + ->WithBindVariableValue('lineItemId', $lineItemId) + ->WithBindVariableValue('creativeId', $creativeId); - if (isset($page->results)) { - $licas = $page->results; + // Get the LICA. + $page = + $licaService->getLineItemCreativeAssociationsByStatement( + $statementBuilder->ToStatement()); + $lica = $page->results[0]; - // Update each local LICA object by changing its destination URL. - foreach ($licas as $lica) { - $lica->destinationUrl = 'http://news.google.com'; - } + // Update the destination URL. + $lica->destinationUrl = 'https://news.google.com?newTrackingParameter'; - // Update the LICAs on the server. - $licas = $licaService->updateLineItemCreativeAssociations($licas); + // Update the LICA on the server. + $licas = $licaService->updateLineItemCreativeAssociations(array($lica)); - // 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"; + foreach ($licas as $updatedLica) { + printf("Lica with line item ID %d, and creative ID %d was updated.\n", + $updatedLica->lineItemId, $updatedLica->creativeId); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/LineItemService/CreateLineItemsExample.php b/examples/Dfp/v201505/LineItemService/CreateLineItems.php similarity index 92% rename from examples/Dfp/v201405/LineItemService/CreateLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/CreateLineItems.php index 3ee2e1386..192c4451e 100755 --- a/examples/Dfp/v201405/LineItemService/CreateLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/CreateLineItems.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); // Set the order that all created line items will belong to and the placement // ID to target. @@ -146,8 +146,8 @@ // Set the length of the line item to run. $lineItem->startDateTimeType = 'IMMEDIATELY'; - $lineItem->endDateTime = - DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + $lineItem->endDateTime = DateTimeUtils::ToDfpDateTime( + new DateTime('+1 month', new DateTimeZone('America/New_York'))); // Set the cost per unit to $2. $lineItem->costType = 'CPM'; @@ -158,6 +158,7 @@ $goal = new Goal(); $goal->units = 500000; $goal->unitType = 'IMPRESSIONS'; + $goal->goalType = 'LIFETIME'; $lineItem->primaryGoal = $goal; $lineItems[] = $lineItem; diff --git a/examples/Dfp/v201405/LineItemService/CreateVideoLineItemsExample.php b/examples/Dfp/v201505/LineItemService/CreateVideoLineItems.php similarity index 68% rename from examples/Dfp/v201405/LineItemService/CreateVideoLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/CreateVideoLineItems.php index ed7111e84..fdb338a3e 100755 --- a/examples/Dfp/v201405/LineItemService/CreateVideoLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/CreateVideoLineItems.php @@ -1,10 +1,10 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); - - // Set the order that all created line items will belong to and the ad unit - // 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); + $lineItemService = $user->GetService('LineItemService', 'v201505'); + + // Create content targeting. + $contentMetadataTargeting = new ContentMetadataKeyHierarchyTargeting(); + $contentMetadataTargeting->customTargetingValueIds = + array($contentCustomTargetingValueId); + $contentTargeting = new ContentTargeting(); + $contentTargeting->targetedContentMetadata = array($contentMetadataTargeting); // Create inventory targeting. $inventoryTargeting = new InventoryTargeting(); @@ -92,7 +89,7 @@ // Create targeting. $targeting = new Targeting(); - $targeting->customTargeting = $customCriteriaSet; + $targeting->contentTargeting = $contentTargeting; $targeting->inventoryTargeting = $inventoryTargeting; $targeting->videoPositionTargeting = $videoPositionTargeting; @@ -133,8 +130,8 @@ // Set the length of the line item to run. $lineItem->startDateTimeType = 'IMMEDIATELY'; - $lineItem->endDateTime = - DateTimeUtils::GetDfpDateTime(new DateTime('+1 month')); + $lineItem->endDateTime = DateTimeUtils::ToDfpDateTime( + new DateTime('+1 month', new DateTimeZone('America/New_York'))); // Set the cost per day to $1. $lineItem->costType = 'CPD'; @@ -143,20 +140,20 @@ // Set the percentage to be 100%. $goal = new Goal(); $goal->units = 100; + $goal->goalType = 'DAILY'; $lineItem->primaryGoal = $goal; // 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."); + foreach ($lineItems as $createdLineItem) { + printf("A line item with with ID %d, belonging to order ID %d, and name " + . "'%s' was created.\n", + $createdLineItem->id, + $createdLineItem->orderId, + $createdLineItem->name + ); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/LineItemService/GetAllLineItemsExample.php b/examples/Dfp/v201505/LineItemService/GetAllLineItems.php similarity index 89% rename from examples/Dfp/v201405/LineItemService/GetAllLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/GetAllLineItems.php index 30ac9273b..9a8432e18 100755 --- a/examples/Dfp/v201405/LineItemService/GetAllLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/GetAllLineItems.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); // Create a statement to select all line items. $statementBuilder = new StatementBuilder(); @@ -70,8 +70,8 @@ $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lineItem) { - printf("%d) Line item with ID %d, belonging to order ID %s, and name " - . "%s was found.\n", $i++, $lineItem->id, $lineItem->orderId, + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, $lineItem->name); } } diff --git a/examples/Dfp/v201405/LineItemService/GetLineItemsByStatementExample.php b/examples/Dfp/v201505/LineItemService/GetLineItemsThatNeedCreatives.php similarity index 77% rename from examples/Dfp/v201405/LineItemService/GetLineItemsByStatementExample.php rename to examples/Dfp/v201505/LineItemService/GetLineItemsThatNeedCreatives.php index 1e4e81f2d..9c3c2cecb 100755 --- a/examples/Dfp/v201405/LineItemService/GetLineItemsByStatementExample.php +++ b/examples/Dfp/v201505/LineItemService/GetLineItemsThatNeedCreatives.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); - // Create a statement to only select line items that need creatives. + // Create a statement to select only line items that are missing creatives. $statementBuilder = new StatementBuilder(); - $statementBuilder->Where('status = :status') + $statementBuilder->Where('isMissingCreatives = :isMissingCreatives') ->OrderBy('id ASC') ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) - ->WithBindVariableValue('status', 'NEEDS_CREATIVES'); + ->WithBindVariableValue('isMissingCreatives', true); // Default for total result set size. $totalResultSetSize = 0; @@ -65,20 +65,22 @@ do { // Get line items by statement. $page = $lineItemService->getLineItemsByStatement( - $statementBuilder.ToStatement()); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lineItem) { - printf("%d) Line item with ID %d, belonging to order ID %d, and name " - ."%s was found.\n", $i++, $lineItem->id, $lineItem->orderId, + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, $lineItem->name); } } + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while ($statementBuilder->GetOffset() < $totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/LineItemService/GetRecentlyUpdatedLineItemsExample.php b/examples/Dfp/v201505/LineItemService/GetRecentlyUpdatedLineItems.php similarity index 70% rename from examples/Dfp/v201405/LineItemService/GetRecentlyUpdatedLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/GetRecentlyUpdatedLineItems.php index b37ec7de2..a93eccffc 100755 --- a/examples/Dfp/v201405/LineItemService/GetRecentlyUpdatedLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/GetRecentlyUpdatedLineItems.php @@ -1,7 +1,8 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); - // Create a statement to only select line items updated or created since - // yesterday. + // Create a statement to select only recently updated line items. $statementBuilder = new StatementBuilder(); $statementBuilder->Where('lastModifiedDateTime >= :lastModifiedDateTime') ->OrderBy('id ASC') ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) - ->WithBindVariableValue('lastModifiedDateTime', - date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT, - strtotime('-1 day'))); + ->WithBindVariableValue( + 'lastModifiedDateTime', + DateTimeUtils::ToDfpDateTime( + new DateTime('-1 day', new DateTimeZone('America/New_York'))) + ); // Default for total result set size. $totalResultSetSize = 0; @@ -76,19 +78,16 @@ $totalResultSetSize = $page->totalResultSetSize; $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); - - printf("%d) Line item with ID %d, belonging to order ID %d, with name " - . "%s, and last modified %s was found.\n", $i++, $lineItem->id, - $lineItem->orderId, $lineItem->name, $lastModifiedDateTimeText); + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "was found.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name + ); } } + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while ($statementBuilder->GetOffset() < $totalResultSetSize); + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/LineItemService/PauseLineItemsExample.php b/examples/Dfp/v201505/LineItemService/PauseLineItems.php similarity index 76% rename from examples/Dfp/v201405/LineItemService/PauseLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/PauseLineItems.php index b4a9a53ef..a5745d4fd 100755 --- a/examples/Dfp/v201405/LineItemService/PauseLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/PauseLineItems.php @@ -1,8 +1,7 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); - - // Set the ID of the order to get line items from. - $orderId = 'INSERT_ORDER_ID_HERE'; + $lineItemService = $user->GetService('LineItemService', 'v201505'); - // Create a statement to select approved line items from a given order. + // Create a statement to select a single line item by ID. $statementBuilder = new StatementBuilder(); - $statementBuilder->Where('orderId = :orderId') + $statementBuilder->Where('id = :id') ->OrderBy('id ASC') - ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) - ->WithBindVariableValue('orderId', $orderId); + ->Limit(1) + ->WithBindVariableValue('id', $lineItemId); // Default for total result set size. $totalResultSetSize = 0; @@ -77,17 +76,18 @@ $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $lineItem) { - printf("%d) Line item with ID %d will be paused.\n", $i++, - $lineItem->id); + printf("%d) Line item with ID %d, belonging to order %d, and name '%s' " + . "will be paused.\n", $i++, $lineItem->id, $lineItem->orderId, + $lineItem->name); } } $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while ($statementBuilder->GetOffset() < $totalResultSetSize); - printf("Number of line items to be paused: %d\n", sizeof($lineItemIds)); + printf("Number of line items to be paused: %d\n", $totalResultSetSize); - if (sizeof($lineItemIds) > 0) { + if ($totalResultSetSize > 0) { // Remove limit and offset from statement. $statementBuilder->RemoveLimitAndOffset(); @@ -96,7 +96,7 @@ // Perform action. $result = $lineItemService->performLineItemAction($action, - $statement->ToStatement()); + $statementBuilder->ToStatement()); // Display results. if (isset($result) && $result->numChanges > 0) { diff --git a/examples/Dfp/v201405/LineItemService/TargetCustomCriteriaExample.php b/examples/Dfp/v201505/LineItemService/TargetCustomCriteria.php similarity index 95% rename from examples/Dfp/v201405/LineItemService/TargetCustomCriteriaExample.php rename to examples/Dfp/v201505/LineItemService/TargetCustomCriteria.php index 92092dc11..f9cd3edf7 100755 --- a/examples/Dfp/v201405/LineItemService/TargetCustomCriteriaExample.php +++ b/examples/Dfp/v201505/LineItemService/TargetCustomCriteria.php @@ -1,9 +1,9 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); + $lineItemService = $user->GetService('LineItemService', 'v201505'); $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; $customCriteriaIds1 = array('INSERT_CUSTOM_TARGETING_KEY_ID_HERE', diff --git a/examples/Dfp/v201405/LineItemService/UpdateLineItemsExample.php b/examples/Dfp/v201505/LineItemService/UpdateLineItems.php similarity index 75% rename from examples/Dfp/v201405/LineItemService/UpdateLineItemsExample.php rename to examples/Dfp/v201505/LineItemService/UpdateLineItems.php index 080d4ee54..d02f68134 100755 --- a/examples/Dfp/v201405/LineItemService/UpdateLineItemsExample.php +++ b/examples/Dfp/v201505/LineItemService/UpdateLineItems.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the LineItemService. - $lineItemService = $user->GetService('LineItemService', 'v201405'); - - // Set the ID of the line item to update. - $lineItemId = 'INSERT_LINE_ITEM_ID_HERE'; + $lineItemService = $user->GetService('LineItemService', 'v201505'); // Create a statement to select a single line item by ID. $statementBuilder = new StatementBuilder(); @@ -63,23 +64,23 @@ ->WithBindVariableValue('id', $lineItemId); // Get the line item. - $results = $lineItemService->getLineItemsByStatement( - $statementBuilder->ToStatement())->results; - $lineItem = $results[0]; + $page = $lineItemService->getLineItemsByStatement( + $statementBuilder->ToStatement()); + $lineItem = $page->results[0]; - // Update the line item's priority to High if possible. - if ($lineItem->lineItemType == 'STANDARD') { + // Update the line item's priority to high if possible. + if ($lineItem->lineItemType === 'STANDARD') { $lineItem->priority = 6; // Update the line item on the server. $lineItems = $lineItemService->updateLineItems(array($lineItem)); - foreach ($updatedLineItem as $lineItems) { - printf("Line item with ID %d and name %s was updated.\n", $lineItem->id, - $lineItem->name); + foreach ($lineItems as $updatedLineItem) { + printf("Line item with ID %d, name '%s' was updated.\n", + $updatedLineItem->id, $updatedLineItem->name); } } else { - printf("No line items were updated.\n"); + printf('No line items were updated.'); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); diff --git a/examples/Dfp/v201405/NetworkService/GetAllNetworksExample.php b/examples/Dfp/v201505/NetworkService/GetAllNetworks.php similarity index 74% rename from examples/Dfp/v201405/NetworkService/GetAllNetworksExample.php rename to examples/Dfp/v201505/NetworkService/GetAllNetworks.php index 09ee7b9a2..2c760716e 100755 --- a/examples/Dfp/v201405/NetworkService/GetAllNetworksExample.php +++ b/examples/Dfp/v201505/NetworkService/GetAllNetworks.php @@ -7,7 +7,7 @@ * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -22,12 +22,12 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Eric Koleda + * @author Vincent Tsao */ error_reporting(E_STRICT | E_ALL); @@ -49,29 +49,25 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); - // Get all networks that you have access to with the current login + // Get all networks that you have access to with the current authentication // 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++; - } + $i = 0; + foreach ($networks as $network) { + printf("%d) Network with network code %d, and display name '%s' was " + . "found.\n", $i++, $network->networkCode, $network->displayName); } - print 'Number of results found: ' . $i . "\n"; + printf("Number of results found: %d\n", $i); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/NetworkService/GetCurrentNetworkExample.php b/examples/Dfp/v201505/NetworkService/GetCurrentNetwork.php similarity index 96% rename from examples/Dfp/v201405/NetworkService/GetCurrentNetworkExample.php rename to examples/Dfp/v201505/NetworkService/GetCurrentNetwork.php index 2292bef62..cab2f3b9e 100755 --- a/examples/Dfp/v201405/NetworkService/GetCurrentNetworkExample.php +++ b/examples/Dfp/v201505/NetworkService/GetCurrentNetwork.php @@ -21,7 +21,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -48,7 +48,7 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Get the current network. $network = $networkService->getCurrentNetwork(); diff --git a/examples/Dfp/v201405/NetworkService/MakeTestNetworkExample.php b/examples/Dfp/v201505/NetworkService/MakeTestNetwork.php similarity index 97% rename from examples/Dfp/v201405/NetworkService/MakeTestNetworkExample.php rename to examples/Dfp/v201505/NetworkService/MakeTestNetwork.php index 3c7b12072..25ae035bf 100755 --- a/examples/Dfp/v201405/NetworkService/MakeTestNetworkExample.php +++ b/examples/Dfp/v201505/NetworkService/MakeTestNetwork.php @@ -32,7 +32,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -59,7 +59,7 @@ $user->LogDefaults(); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Make the test network. $network = $networkService->makeTestNetwork(); diff --git a/examples/Dfp/v201505/OrderService/ApproveOrders.php b/examples/Dfp/v201505/OrderService/ApproveOrders.php new file mode 100755 index 000000000..2cccb618f --- /dev/null +++ b/examples/Dfp/v201505/OrderService/ApproveOrders.php @@ -0,0 +1,115 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201505'); + + // Create a statement to select a single order by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $orderId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get orders by statement. + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $order) { + printf("%d) Order with ID %d, name '%s', and advertiser ID %d will be " + . "approved.\n", $i++, $order->id, $order->name, + $order->advertiserId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of orders to be approved: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ApproveOrders(); + + // Perform action. + $result = $orderService->performOrderAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of orders approved: %d\n", $result->numChanges); + } else { + printf("No orders were approved.\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/v201405/OrderService/CreateOrdersExample.php b/examples/Dfp/v201505/OrderService/CreateOrders.php similarity index 96% rename from examples/Dfp/v201405/OrderService/CreateOrdersExample.php rename to examples/Dfp/v201505/OrderService/CreateOrders.php index 97dba4c7d..0c8db88b0 100755 --- a/examples/Dfp/v201405/OrderService/CreateOrdersExample.php +++ b/examples/Dfp/v201505/OrderService/CreateOrders.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the OrderService. - $orderService = $user->GetOrderService('v201405'); + $orderService = $user->GetOrderService('v201505'); // Set the advertiser (company), salesperson, and trafficker to assign to each // order. diff --git a/examples/Dfp/v201405/OrderService/GetAllOrdersExample.php b/examples/Dfp/v201505/OrderService/GetAllOrders.php similarity index 60% rename from examples/Dfp/v201405/OrderService/GetAllOrdersExample.php rename to examples/Dfp/v201505/OrderService/GetAllOrders.php index f24f477e1..b59345225 100755 --- a/examples/Dfp/v201405/OrderService/GetAllOrdersExample.php +++ b/examples/Dfp/v201505/OrderService/GetAllOrders.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the OrderService. - $orderService = $user->GetService('OrderService', 'v201405'); + $orderService = $user->GetService('OrderService', 'v201505'); - // Set defaults for page and statement. - $page = new OrderPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all orders. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all orders. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get orders by statement. - $page = $orderService->getOrdersByStatement($filterStatement); + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + printf("%d) Order with ID %d, name '%s', and advertiser ID %d was " + . "found.\n", $i++, $order->id, $order->name, $order->advertiserId); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/OrderService/GetOrdersStartingSoon.php b/examples/Dfp/v201505/OrderService/GetOrdersStartingSoon.php new file mode 100755 index 000000000..5edbf6157 --- /dev/null +++ b/examples/Dfp/v201505/OrderService/GetOrdersStartingSoon.php @@ -0,0 +1,102 @@ +LogAll(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201505'); + + // Create a statement to select only orders that are starting soon. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where( + 'status = :status AND startDateTime >= :now AND startDateTime <= :soon') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'APPROVED') + ->WithBindVariableValue( + 'now', + DateTimeUtils::ToDfpDateTime( + new DateTime('now', new DateTimeZone('America/New_York'))) + ) + ->WithBindVariableValue( + 'soon', + DateTimeUtils::ToDfpDateTime( + new DateTime('5 day', new DateTimeZone('America/New_York'))) + ); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get orders by statement. + $page = $orderService->getOrdersByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $order) { + printf("%d) Order with ID %d, name '%s', and advertiser ID %d was " + . "found.\n", $i++, $order->id, $order->name, $order->advertiserId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/OrderService/UpdateOrders.php b/examples/Dfp/v201505/OrderService/UpdateOrders.php new file mode 100755 index 000000000..1b9d241c7 --- /dev/null +++ b/examples/Dfp/v201505/OrderService/UpdateOrders.php @@ -0,0 +1,87 @@ +LogDefaults(); + + // Get the OrderService. + $orderService = $user->GetService('OrderService', 'v201505'); + + // Create a statement to select a single order by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $orderId); + + // Get the order. + $page = $orderService->getOrdersByStatement($statementBuilder->ToStatement()); + $order = $page->results[0]; + + // Update the order's notes. + $order->notes = 'Spoke to advertiser. All is well.'; + + // Update the order on the server. + $orders = $orderService->updateOrders(array($order)); + + foreach ($orders as $updatedOrder) { + printf("Order with ID %d, name '%s' was updated.\n", $updatedOrder->id, + $updatedOrder->name); + } +} 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/v201405/PlacementService/CreatePlacementsExample.php b/examples/Dfp/v201505/PlacementService/CreatePlacements.php similarity index 97% rename from examples/Dfp/v201405/PlacementService/CreatePlacementsExample.php rename to examples/Dfp/v201505/PlacementService/CreatePlacements.php index c9f344f3f..e925708f4 100755 --- a/examples/Dfp/v201405/PlacementService/CreatePlacementsExample.php +++ b/examples/Dfp/v201505/PlacementService/CreatePlacements.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201405'); + $placementService = $user->GetService('PlacementService', 'v201505'); // Get the InventoryService. - $inventoryService = $user->GetService('InventoryService', 'v201405'); + $inventoryService = $user->GetService('InventoryService', 'v201505'); // Create local placement object to store skyscraper ad units. $skyscraperAdUnitPlacement = new Placement(); diff --git a/examples/Dfp/v201505/PlacementService/DeactivatePlacements.php b/examples/Dfp/v201505/PlacementService/DeactivatePlacements.php new file mode 100755 index 000000000..fcc5cad49 --- /dev/null +++ b/examples/Dfp/v201505/PlacementService/DeactivatePlacements.php @@ -0,0 +1,114 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201505'); + + // Create a statement to select a single placement by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $placementId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get placements by statement. + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $placement) { + printf("%d) Placement with ID %d, and name '%s' will be deactivated.\n", + $i++, $placement->id, $placement->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of placements to be deactivated: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivatePlacements(); + + // Perform action. + $result = $placementService->performPlacementAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of placements deactivated: %d\n", $result->numChanges); + } else { + printf("No placements were deactivated.\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/v201505/PlacementService/GetActivePlacements.php b/examples/Dfp/v201505/PlacementService/GetActivePlacements.php new file mode 100755 index 000000000..0340107b8 --- /dev/null +++ b/examples/Dfp/v201505/PlacementService/GetActivePlacements.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201505'); + + // Create a statement to select only active placements. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'ACTIVE'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get placements by statement. + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $placement) { + printf("%d) Placement with ID %d, and name '%s' was found.\n", $i++, + $placement->id, $placement->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/PlacementService/GetAllPlacementsExample.php b/examples/Dfp/v201505/PlacementService/GetAllPlacements.php similarity index 65% rename from examples/Dfp/v201405/PlacementService/GetAllPlacementsExample.php rename to examples/Dfp/v201505/PlacementService/GetAllPlacements.php index da0b5d3c3..344b24078 100755 --- a/examples/Dfp/v201405/PlacementService/GetAllPlacementsExample.php +++ b/examples/Dfp/v201505/PlacementService/GetAllPlacements.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the PlacementService. - $placementService = $user->GetService('PlacementService', 'v201405'); + $placementService = $user->GetService('PlacementService', 'v201505'); - // Set defaults for page and statement. - $page = new PlacementPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all placements. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all placements. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get placements by statement. - $page = $placementService->getPlacementsByStatement($filterStatement); + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $placement) { - print $i . ') Placement with ID "' . $placement->id - . '" and name "' . $placement->name - . "\" was found.\n"; - $i++; + printf("%d) Placement with ID %d, and name '%s' was found.\n", $i++, + $placement->id, $placement->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/PlacementService/UpdatePlacements.php b/examples/Dfp/v201505/PlacementService/UpdatePlacements.php new file mode 100755 index 000000000..0677fd25e --- /dev/null +++ b/examples/Dfp/v201505/PlacementService/UpdatePlacements.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the PlacementService. + $placementService = $user->GetService('PlacementService', 'v201505'); + + // Create a statement to select a single placement by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $placementId); + + // Get the placement. + $page = $placementService->getPlacementsByStatement( + $statementBuilder->ToStatement()); + $placement = $page->results[0]; + + // Enable AdSense targeting. + $placement->targetingDescription = 'For sports pages. AdSense is enabled.'; + $placement->targetingAdLocation = 'All images on sports pages.'; + $placement->targetingSiteName = 'https://news.google.com'; + $placement->isAdSenseTargetingEnabled = true; + + // Update the placement on the server. + $placements = $placementService->updatePlacements(array($placement)); + + foreach ($placements as $updatedPlacement) { + printf("Placement with ID %d, and name '%s' was updated.\n", + $updatedPlacement->id, $updatedPlacement->name); + } +} 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/v201505/PremiumRateService/CreatePremiumRates.php b/examples/Dfp/v201505/PremiumRateService/CreatePremiumRates.php new file mode 100755 index 000000000..4f3ea0e62 --- /dev/null +++ b/examples/Dfp/v201505/PremiumRateService/CreatePremiumRates.php @@ -0,0 +1,109 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201505'); + + $premiumRate = new PremiumRate(); + + // Create an ad unit premium to apply to the rate card. + $adUnitPremiumFeature = new AdUnitPremiumFeature(); + + // Create a CPM based premium rate value with adjustments in micro amounts. + // This will adjust a CPM priced proposal line item that has inventory + // targeting specified by 2 units of the currency associated with the rate + // card (this comes from absolute value adjustment). + $cpmPremiumRateValue = new PremiumRateValue(); + $cpmPremiumRateValue->premiumFeature = $adUnitPremiumFeature; + $cpmPremiumRateValue->rateType = 'CPM'; + $cpmPremiumRateValue->adjustmentSize = 2000000; + $cpmPremiumRateValue->adjustmentType = 'ABSOLUTE_VALUE'; + + // Create a CPC based premium rate value with adjustments in milli amounts. + // This will adjust a CPC priced proposal line item that has inventory + // targeting specified by 10% of the cost associated with the rate card (this + // comes from a percentage adjustment). + $cpcPremiumRateValue = new PremiumRateValue(); + $cpcPremiumRateValue->premiumFeature = $adUnitPremiumFeature; + $cpcPremiumRateValue->rateType = 'CPC'; + $cpcPremiumRateValue->adjustmentSize = 10000; + $cpcPremiumRateValue->adjustmentType = 'PERCENTAGE'; + + // Associate premium rate with the rate card and set premium information. This + // premium will apply for proposal line items targeting 'any' ad unit for both + // CPM and CPC rate types. + $premiumRate->rateCardId = $rateCardId; + $premiumRate->pricingMethod = 'ANY_VALUE'; + $premiumRate->premiumFeature = $adUnitPremiumFeature; + $premiumRate->premiumRateValues = + array($cpmPremiumRateValue, $cpcPremiumRateValue); + + // Create the premium rate on the server. + $premiumRates = $premiumRateService->createPremiumRates(array($premiumRate)); + + foreach ($premiumRates as $createdPremiumRate) { + printf("A premium rate with ID %d, of type '%s', assigned to rate card " + . "with ID %d was created.\n", + $createdPremiumRate->id, + get_class($createdPremiumRate->premiumFeature), + $createdPremiumRate->rateCardId + ); + } +} 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/v201505/PremiumRateService/GetAllPremiumRates.php b/examples/Dfp/v201505/PremiumRateService/GetAllPremiumRates.php new file mode 100755 index 000000000..a11c45001 --- /dev/null +++ b/examples/Dfp/v201505/PremiumRateService/GetAllPremiumRates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201505'); + + // Create a statement to select all premium rates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get premium rates by statement. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $premiumRate) { + printf("%d) Premium rate with ID %d, of type '%s', assigned to rate " + . "card with ID %d was found.\n", $i++, $premiumRate->id, + get_class($premiumRate->premiumFeature), $premiumRate->rateCardId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/PremiumRateService/GetPremiumRatesForRateCard.php b/examples/Dfp/v201505/PremiumRateService/GetPremiumRatesForRateCard.php new file mode 100755 index 000000000..08ab79f8e --- /dev/null +++ b/examples/Dfp/v201505/PremiumRateService/GetPremiumRatesForRateCard.php @@ -0,0 +1,99 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201505'); + + // Create a statement to select only premium rates on a specific rate card. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('rateCardId = :rateCardId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('rateCardId', $rateCardId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get premium rates by statement. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $premiumRate) { + printf("%d) Premium rate with ID %d, of type '%s', assigned to rate " + . "card with ID %d was found.\n", + $i++, $premiumRate->id, + get_class($premiumRate->premiumFeature), + $premiumRate->rateCardId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/PremiumRateService/UpdatePremiumRates.php b/examples/Dfp/v201505/PremiumRateService/UpdatePremiumRates.php new file mode 100755 index 000000000..5111f8957 --- /dev/null +++ b/examples/Dfp/v201505/PremiumRateService/UpdatePremiumRates.php @@ -0,0 +1,101 @@ +LogDefaults(); + + // Get the PremiumRateService. + $premiumRateService = $user->GetService('PremiumRateService', 'v201505'); + + // Create a statement to select a single premium rate by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $premiumRateId); + + // Get the premium rate. + $page = $premiumRateService->getPremiumRatesByStatement( + $statementBuilder->ToStatement()); + $premiumRate = $page->results[0]; + + // Create a flat fee based premium rate value with a 10% increase. + $flatFeePremiumRateValue = new PremiumRateValue(); + $flatFeePremiumRateValue->premiumFeature = $premiumRate->premiumFeature; + $flatFeePremiumRateValue->rateType = 'CPM'; + $flatFeePremiumRateValue->adjustmentSize = 10000; + $flatFeePremiumRateValue->adjustmentType = 'PERCENTAGE'; + + // Update the premium rate's premiumRateValues to include a flat fee premium + // rate. + $premiumRate->premiumRateValues[] = $flatFeePremiumRateValue; + + // Update the premium rate on the server. + $premiumRates = $premiumRateService->updatePremiumRates(array($premiumRate)); + + foreach ($premiumRates as $updatedPremiumRate) { + printf("Premium rate with ID %d, of type '%s', assigned to rate card with " + . "ID %d was updated.\n", + $updatedPremiumRate->id, + get_class($updatedPremiumRate->premiumFeature), + $updatedPremiumRate->rateCardId + ); + } +} 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/v201505/ProductService/GetAllProducts.php b/examples/Dfp/v201505/ProductService/GetAllProducts.php new file mode 100755 index 000000000..92792ff72 --- /dev/null +++ b/examples/Dfp/v201505/ProductService/GetAllProducts.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201505'); + + // Create a statement to select all products. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get products by statement. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $product) { + printf("%d) Product with ID %d, and name '%s' was found.\n", $i++, + $product->id, $product->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProductService/GetProductsForProductTemplate.php b/examples/Dfp/v201505/ProductService/GetProductsForProductTemplate.php new file mode 100755 index 000000000..86d2b77e6 --- /dev/null +++ b/examples/Dfp/v201505/ProductService/GetProductsForProductTemplate.php @@ -0,0 +1,95 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201505'); + + // Create a statement to select only products created from a specific product + // template. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('productTemplateId = :productTemplateId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('productTemplateId', $productTemplateId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get products by statement. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $product) { + printf("%d) Product with ID %d, and name '%s' was found.\n", $i++, + $product->id, $product->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProductService/UpdateProducts.php b/examples/Dfp/v201505/ProductService/UpdateProducts.php new file mode 100755 index 000000000..d3c35d9e3 --- /dev/null +++ b/examples/Dfp/v201505/ProductService/UpdateProducts.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ProductService. + $productService = $user->GetService('ProductService', 'v201505'); + + // Create a statement to select a single product by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productId); + + // Get the product. + $page = $productService->getProductsByStatement( + $statementBuilder->ToStatement()); + $product = $page->results[0]; + + // Update the product's notes. + $product->notes = 'Product needs further review before approval.'; + + // Update the product on the server. + $products = $productService->updateProducts(array($product)); + + foreach ($products as $updatedProduct) { + printf("Product with ID %d and name '%s' was updated.\n", + $updatedProduct->id, $updatedProduct->name); + } +} 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/v201505/ProductTemplateService/ActivateProductTemplates.php b/examples/Dfp/v201505/ProductTemplateService/ActivateProductTemplates.php new file mode 100755 index 000000000..c23baf1ef --- /dev/null +++ b/examples/Dfp/v201505/ProductTemplateService/ActivateProductTemplates.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201505'); + + // Create a statement to select a single product template by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productTemplateId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d and name '%s' will be " + . "activated.\n", + $i++, + $productTemplate->id, + $productTemplate->name + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of product templates to be activated: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ActivateProductTemplates(); + + // Perform action. + $result = $productTemplateService->performProductTemplateAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of product templates activated: %d\n", + $result->numChanges); + } else { + printf("No product templates were activated.\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/v201505/ProductTemplateService/CreateProductTemplates.php b/examples/Dfp/v201505/ProductTemplateService/CreateProductTemplates.php new file mode 100755 index 000000000..97b657f97 --- /dev/null +++ b/examples/Dfp/v201505/ProductTemplateService/CreateProductTemplates.php @@ -0,0 +1,152 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201505'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201505'); + + // Create a product template. + $productTemplate = new ProductTemplate(); + $productTemplate->name = sprintf('Product template #%s', uniqid()); + $productTemplate->description = 'This product template creates standard ' + . 'proposal line items targeting Chrome browsers with product ' + . 'segmentation on ad units and geo targeting.'; + + // Set the name macro which will be used to generate the names of the + // products. This will create a segmentation based on the line item type, ad + // unit, and location. + $productTemplate->nameMacro = + ' - - - '; + + // Set the product type so the created proposal line items will be trafficked + // in DFP. + $productTemplate->productType = 'DFP'; + + // Set rate type to create CPM priced proposal line items. + $productTemplate->rateType = 'CPM'; + + // Optionally set the creative rotation of the product to serve one or more + // creatives. + $productTemplate->roadblockingType = 'ONE_OR_MORE'; + + // Create the master creative placeholder. + $creativeMasterPlaceholder = new CreativePlaceholder(); + $creativeMasterPlaceholder->size = new Size(728, 90, false); + + // Create companion creative placeholders. + $companionCreativePlaceholder = new CreativePlaceholder(); + $companionCreativePlaceholder->size = new Size(300, 250, false); + + // Set the size of creatives that can be associated with the product template. + $productTemplate->creativePlaceholders = + array($creativeMasterPlaceholder, $companionCreativePlaceholder); + + // Set the type of proposal line item to be created from the product template. + $productTemplate->lineItemType = 'STANDARD'; + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + // Create geo targeting for the US. + $countryLocation = new DfpLocation(); + $countryLocation->id = 2840; + + // Create geo targeting for Hong Kong. + $regionLocation = new DfpLocation(); + $regionLocation->id = 2344; + + $geoTargeting = new GeoTargeting(); + $geoTargeting->targetedLocations = array($countryLocation, $regionLocation); + + // Add browser targeting to Chrome on the product template distinct from + // product segmentation. + $chromeBrowser = new Browser(); + $chromeBrowser->id = 500072; + + $browserTargeting = new BrowserTargeting(); + $browserTargeting->browsers = array($chromeBrowser); + + $productTemplateTargeting = new ProductTemplateTargeting(); + $productTemplateTargeting->browserTargeting = $browserTargeting; + + $productTemplate->targeting = $productTemplateTargeting; + + // Add inventory and geo targeting as product segmentation. + $productSegmentation = new ProductSegmentation(); + $productSegmentation->adUnitSegments = array($adUnitTargeting); + $productSegmentation->geoSegment = $geoTargeting; + + $productTemplate->productSegmentation = $productSegmentation; + + // Create the product template on the server. + $productTemplates = $productTemplateService->createProductTemplates( + array($productTemplate)); + + foreach ($productTemplates as $createdProductTemplate) { + printf("A product template with ID %d and name '%s' was created.\n", + $createdProductTemplate->id, $createdProductTemplate->name); + } +} 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/v201505/ProductTemplateService/GetAllProductTemplates.php b/examples/Dfp/v201505/ProductTemplateService/GetAllProductTemplates.php new file mode 100755 index 000000000..aaa75fb44 --- /dev/null +++ b/examples/Dfp/v201505/ProductTemplateService/GetAllProductTemplates.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201505'); + + // Create a statement to select all product templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d, and name '%s' was found.\n", + $i++, $productTemplate->id, $productTemplate->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProductTemplateService/GetSponsorshipProductTemplates.php b/examples/Dfp/v201505/ProductTemplateService/GetSponsorshipProductTemplates.php new file mode 100755 index 000000000..949ec5cc3 --- /dev/null +++ b/examples/Dfp/v201505/ProductTemplateService/GetSponsorshipProductTemplates.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201505'); + + // Create a statement to select only sponsorship product templates. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('lineItemType = :lineItemType') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('lineItemType', 'SPONSORSHIP'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get product templates by statement. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $productTemplate) { + printf("%d) Product template with ID %d, and name '%s' was found.\n", + $i++, $productTemplate->id, $productTemplate->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProductTemplateService/UpdateProductTemplates.php b/examples/Dfp/v201505/ProductTemplateService/UpdateProductTemplates.php new file mode 100755 index 000000000..2d297a8ab --- /dev/null +++ b/examples/Dfp/v201505/ProductTemplateService/UpdateProductTemplates.php @@ -0,0 +1,102 @@ +LogDefaults(); + + // Get the ProductTemplateService. + $productTemplateService = $user->GetService('ProductTemplateService', + 'v201505'); + + // Create a statement to select a single product template by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $productTemplateId); + + // Get the product template. + $page = $productTemplateService->getProductTemplatesByStatement( + $statementBuilder->ToStatement()); + $productTemplate = $page->results[0]; + + // Add geo targeting for Canada to the product template. + $countryLocation = new DfpLocation(); + $countryLocation->id = 2124; + + $productTemplateTargeting = $productTemplate->targeting; + + if (isset($productTemplateTargeting->geoTargeting)) { + $productTemplateTargeting->geoTargeting[] = $countryLocation; + } else { + $productTemplateTargeting->geoTargeting = array($countryLocation); + } + + $productTemplate->targeting = $productTemplateTargeting; + + // Update the product template on the server. + $productTemplates = + $productTemplateService->updateProductTemplates(array($productTemplate)); + + foreach ($productTemplates as $updatedProductTemplate) { + printf("Product template with ID %d and name '%s' was updated.\n", + $updatedProductTemplate->id, $updatedProductTemplate->name); + } +} 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/v201505/ProposalLineItemService/ArchiveProposalLineItems.php b/examples/Dfp/v201505/ProposalLineItemService/ArchiveProposalLineItems.php new file mode 100755 index 000000000..673eabda9 --- /dev/null +++ b/examples/Dfp/v201505/ProposalLineItemService/ArchiveProposalLineItems.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201505'); + + // Create a statement to select a single proposal line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalLineItemId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d and name '%s' will be " + . "archived.\n", + $i++, + $proposalLineItem->id, + $proposalLineItem->name + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of proposal line items to be archived: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ArchiveProposalLineItems(); + + // Perform action. + $result = $proposalLineItemService->performProposalLineItemAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of proposal line items archived: %d\n", + $result->numChanges); + } else { + printf("No proposal line items were archived.\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/v201505/ProposalLineItemService/CreateProposalLineItems.php b/examples/Dfp/v201505/ProposalLineItemService/CreateProposalLineItems.php new file mode 100755 index 000000000..9a78fedab --- /dev/null +++ b/examples/Dfp/v201505/ProposalLineItemService/CreateProposalLineItems.php @@ -0,0 +1,138 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201505'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201505'); + + // Get the root ad unit ID used to target the whole site. + $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; + + // Create inventory targeting. + $inventoryTargeting = new InventoryTargeting(); + + // Create ad unit targeting for the root ad unit (i.e. the whole network). + $adUnitTargeting = new AdUnitTargeting(); + $adUnitTargeting->adUnitId = $rootAdUnitId; + $adUnitTargeting->includeDescendants = true; + + $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); + + // Create targeting. + $targeting = new Targeting(); + $targeting->inventoryTargeting = $inventoryTargeting; + + // Create a proposal line item. + $proposalLineItem = new ProposalLineItem(); + $proposalLineItem->name = sprintf('Proposal line item #%s', uniqid()); + + $proposalLineItem->proposalId = $proposalId; + $proposalLineItem->rateCardId = $rateCardId; + $proposalLineItem->productId = $productId; + $proposalLineItem->targeting = $targeting; + + // Set the length of the proposal line item to run. + $proposalLineItem->startDateTime = DateTimeUtils::ToDfpDateTime( + new DateTime('now', new DateTimeZone('America/New_York'))); + $proposalLineItem->endDateTime = DateTimeUtils::ToDfpDateTime( + new DateTime('+1 month', new DateTimeZone('America/New_York'))); + + // Set delivery specifications for the proposal line item. + $proposalLineItem->deliveryRateType = 'EVENLY'; + $proposalLineItem->creativeRotationType = 'OPTIMIZED'; + + // Set billing specifications for the proposal line item. + $proposalLineItem->billingCap = 'CAPPED_CUMULATIVE'; + $proposalLineItem->billingSource = 'THIRD_PARTY_VOLUME'; + + // Set pricing for the proposal line item for 1000 impressions at a CPM of $2 + // for a total value of $2. + $goal = new Goal(); + $goal->units = 1000; + $goal->unitType = 'IMPRESSIONS'; + $proposalLineItem->goal = $goal; + + $proposalLineItem->cost = new Money('USD', 2000000); + $proposalLineItem->costPerUnit = new Money('USD', 2000000); + $proposalLineItem->rateType = 'CPM'; + + // Create the proposal line item on the server. + $proposalLineItems = $proposalLineItemService->createProposalLineItems( + array($proposalLineItem)); + + foreach ($proposalLineItems as $createdProposalLineItem) { + printf("A proposal line item with ID %d and name '%s' was created.\n", + $createdProposalLineItem->id, $createdProposalLineItem->name); + } +} 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/v201505/ProposalLineItemService/GetAllProposalLineItems.php b/examples/Dfp/v201505/ProposalLineItemService/GetAllProposalLineItems.php new file mode 100755 index 000000000..9c4ac2e1d --- /dev/null +++ b/examples/Dfp/v201505/ProposalLineItemService/GetAllProposalLineItems.php @@ -0,0 +1,90 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201505'); + + // Create a statement to select all proposal line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d, and name '%s' was found.\n", + $i++, $proposalLineItem->id, $proposalLineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProposalLineItemService/GetProposalLineItemsForProposal.php b/examples/Dfp/v201505/ProposalLineItemService/GetProposalLineItemsForProposal.php new file mode 100755 index 000000000..3b06132de --- /dev/null +++ b/examples/Dfp/v201505/ProposalLineItemService/GetProposalLineItemsForProposal.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201505'); + + // Create a statement to select only proposal line items belonging to a + // specific proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('proposalId = :proposalId') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('proposalId', $proposalId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposal line items by statement. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposalLineItem) { + printf("%d) Proposal line item with ID %d and name '%s' was found.\n", + $i++, $proposalLineItem->id, $proposalLineItem->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProposalLineItemService/UpdateProposalLineItems.php b/examples/Dfp/v201505/ProposalLineItemService/UpdateProposalLineItems.php new file mode 100755 index 000000000..76c2a2e51 --- /dev/null +++ b/examples/Dfp/v201505/ProposalLineItemService/UpdateProposalLineItems.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ProposalLineItemService. + $proposalLineItemService = $user->GetService('ProposalLineItemService', + 'v201505'); + + // Create a statement to select a single proposal line item by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalLineItemId); + + // Get the proposal line item. + $page = $proposalLineItemService->getProposalLineItemsByStatement( + $statementBuilder->ToStatement()); + $proposalLineItem = $page->results[0]; + + // Update the proposal line item's note field. + $proposalLineItem->notes = 'Proposal line item ready for submission.'; + + // Update the proposal line item on the server. + $proposalLineItems = + $proposalLineItemService->updateProposalLineItems( + array($proposalLineItem)); + + foreach ($proposalLineItems as $updatedProposalLineItem) { + printf("Proposal line item with ID %d and name '%s' was updated.\n", + $updatedProposalLineItem->id, $updatedProposalLineItem->name); + } +} 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/v201505/ProposalService/CreateProposals.php b/examples/Dfp/v201505/ProposalService/CreateProposals.php new file mode 100755 index 000000000..0433044ae --- /dev/null +++ b/examples/Dfp/v201505/ProposalService/CreateProposals.php @@ -0,0 +1,121 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201505'); + + // Get the NetworkService. + $networkService = $user->GetService('NetworkService', 'v201505'); + + // Create a proposal. + $proposal = new Proposal(); + $proposal->name = sprintf('Proposal #%s', uniqid()); + + // Create a proposal company association. + $proposalCompanyAssociation = new ProposalCompanyAssociation(); + $proposalCompanyAssociation->companyId = $advertiserId; + $proposalCompanyAssociation->type = 'ADVERTISER'; + $proposal->advertiser = $proposalCompanyAssociation; + + // Create salesperson splits for the primary salesperson and secondary + // salespeople. + $primarySalesperson = new SalespersonSplit(); + $primarySalesperson->userId = $primarySalespersonId; + $primarySalesperson->split = 75000; + $proposal->primarySalesperson = $primarySalesperson; + + $secondarySalesperson = new SalespersonSplit(); + $secondarySalesperson->userId = $secondarySalespersonId; + $secondarySalesperson->split = 25000; + $proposal->secondarySalespeople = array($secondarySalesperson); + + // Set the probability to close to 100%. + $proposal->probabilityOfClose = 100000; + + // Set the primary trafficker on the proposal for when it becomes an order. + $proposal->primaryTraffickerId = $primaryTraffickerId; + + // Create a budget for the proposal worth 100 in the network local currency. + $budget = new Money(); + $budget->microAmount = 100000000; + $budget->currencyCode = $networkService->getCurrentNetwork()->currencyCode; + $proposal->budget = $budget; + + $proposal->billingCap = 'CAPPED_CUMULATIVE'; + $proposal->billingSource = 'DFP_VOLUME'; + + // Create the proposal on the server. + $proposals = $proposalService->createProposals(array($proposal)); + + foreach ($proposals as $createdProposal) { + printf("A proposal with ID %d and name '%s' was created.\n", + $createdProposal->id, $createdProposal->name); + } +} 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/v201505/ProposalService/GetAllProposals.php b/examples/Dfp/v201505/ProposalService/GetAllProposals.php new file mode 100755 index 000000000..d2ec89eb9 --- /dev/null +++ b/examples/Dfp/v201505/ProposalService/GetAllProposals.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201505'); + + // Create a statement to select all proposals. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d, and name '%s' was found.\n", $i++, + $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProposalService/GetProposalsPendingApproval.php b/examples/Dfp/v201505/ProposalService/GetProposalsPendingApproval.php new file mode 100755 index 000000000..d8e740960 --- /dev/null +++ b/examples/Dfp/v201505/ProposalService/GetProposalsPendingApproval.php @@ -0,0 +1,91 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201505'); + + // Create a statement to select only proposals pending approval. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('status = :status') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('status', 'PENDING_APPROVAL'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d and name '%s' was found.\n", $i++, + $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/ProposalService/SubmitProposalsForApproval.php b/examples/Dfp/v201505/ProposalService/SubmitProposalsForApproval.php new file mode 100755 index 000000000..02eb600a8 --- /dev/null +++ b/examples/Dfp/v201505/ProposalService/SubmitProposalsForApproval.php @@ -0,0 +1,114 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201505'); + + // Create a statement to select a single proposal by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get proposals by statement. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $proposal) { + printf("%d) Proposal with ID %d and name '%s' will be submitted for " + . "approval.\n", $i++, $proposal->id, $proposal->name); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of proposals to be submitted: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new SubmitProposalsForApproval(); + + // Perform action. + $result = $proposalService->performProposalAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of proposals submitted: %d\n", $result->numChanges); + } else { + printf("No proposals were submitted.\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/v201505/ProposalService/UpdateProposals.php b/examples/Dfp/v201505/ProposalService/UpdateProposals.php new file mode 100755 index 000000000..5dbf4fe99 --- /dev/null +++ b/examples/Dfp/v201505/ProposalService/UpdateProposals.php @@ -0,0 +1,88 @@ +LogDefaults(); + + // Get the ProposalService. + $proposalService = $user->GetService('ProposalService', 'v201505'); + + // Create a statement to select a single proposal by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $proposalId); + + // Get the proposal. + $page = $proposalService->getProposalsByStatement( + $statementBuilder->ToStatement()); + $proposal = $page->results[0]; + + // Update the proposal's notes. + $proposal->notes = 'Proposal needs further review before approval.'; + + // Update the proposal on the server. + $proposals = $proposalService->updateProposals(array($proposal)); + + foreach ($proposals as $updatedProposal) { + printf("Proposal with ID %d and name '%s' was updated.\n", + $updatedProposal->id, $updatedProposal->name); + } +} 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/v201405/PublisherQueryLanguageService/FetchMatchTables.php b/examples/Dfp/v201505/PublisherQueryLanguageService/FetchMatchTables.php similarity index 71% rename from examples/Dfp/v201405/PublisherQueryLanguageService/FetchMatchTables.php rename to examples/Dfp/v201505/PublisherQueryLanguageService/FetchMatchTables.php index d99e3a5a2..4901d706d 100755 --- a/examples/Dfp/v201405/PublisherQueryLanguageService/FetchMatchTables.php +++ b/examples/Dfp/v201505/PublisherQueryLanguageService/FetchMatchTables.php @@ -7,13 +7,13 @@ * may need to be raised for this example to work properly. * * A full list of available tables can be found at: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201405/PublisherQueryLanguageService + * https://developers.google.com/doubleclick-publishers/docs/reference/v201505/PublisherQueryLanguageService * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -28,9 +28,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -44,7 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -56,18 +57,25 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201405'); - - // 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, + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201505'); + + // Create statement to select all line items. + $lineItemStatementBuilder = new StatementBuilder(); + $lineItemStatementBuilder->Select('Id, Name, Status') + ->From('Line_Item') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Create statement to select all ad units. + $adUnitStatementBuilder = new StatementBuilder(); + $adUnitStatementBuilder->Select('Id, Name') + ->From('Ad_Unit') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + $lineItemFilePath = fetchMatchTable($lineItemStatementBuilder, $pqlService, "Line-Item-Matchtable"); - $adUnitFilePath = fetchMatchTable($adUnitPqlTemplate, $pqlService, + $adUnitFilePath = fetchMatchTable($adUnitStatementBuilder, $pqlService, "Ad-Unit-Matchtable"); printf("Line items saved to %s\n", $lineItemFilePath); @@ -83,21 +91,19 @@ /** * 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; +function fetchMatchTable($statementBuilder, $pqlService, $fileName) { + $resultSet = null; + $combinedResultSet = null; do { - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset))); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) ? $resultSet : Pql::CombineResultSets($combinedResultSet, $resultSet); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while (isset($resultSet->rows) && count($resultSet->rows) > 0); // Change to your file location. diff --git a/examples/Dfp/v201505/PublisherQueryLanguageService/GetAllBrowsers.php b/examples/Dfp/v201505/PublisherQueryLanguageService/GetAllBrowsers.php new file mode 100755 index 000000000..f924c85f3 --- /dev/null +++ b/examples/Dfp/v201505/PublisherQueryLanguageService/GetAllBrowsers.php @@ -0,0 +1,111 @@ +LogDefaults(); + + // Get the PublisherQueryLanguageService. + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201505'); + + // Create statement to select all line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select('Id, BrowserName, MajorVersion, MinorVersion') + ->From('Browser') + ->OrderBy('BrowserName ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for result sets. + $resultSet = null; + $combinedResultSet = null; + $i = 0; + + do { + // Get all browsers. + $resultSet = $pqlService->select($statementBuilder->ToStatement()); + + // Combine result sets with previous ones. + $combinedResultSet = (!isset($combinedResultSet)) + ? $resultSet + : Pql::CombineResultSets($combinedResultSet, $resultSet); + + printf("%d) %d browsers beginning at offset %d were found.\n", $i++, + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while (isset($resultSet->rows) && count($resultSet->rows) > 0); + + // Change to your file location. + $filePath = sprintf("%s/Browsers-%s.csv", sys_get_temp_dir(), 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); + + printf("Browsers 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/v201405/PublisherQueryLanguageService/GetGeoTargets.php b/examples/Dfp/v201505/PublisherQueryLanguageService/GetGeoTargets.php similarity index 67% rename from examples/Dfp/v201405/PublisherQueryLanguageService/GetGeoTargets.php rename to examples/Dfp/v201505/PublisherQueryLanguageService/GetGeoTargets.php index 5778b7438..91c66461c 100755 --- a/examples/Dfp/v201405/PublisherQueryLanguageService/GetGeoTargets.php +++ b/examples/Dfp/v201505/PublisherQueryLanguageService/GetGeoTargets.php @@ -2,20 +2,20 @@ /** * This example gets geographic criteria from the Geo_Target table, such as * all cities available to target. Other types include 'Country', 'Region', - * 'State', 'Postal_Code', and 'DMA_Region' (i.e., Metro). This example may take + * 'State', 'Postal_Code', and 'DMA_Region' (i.e. Metro). This example may take * a while to run. * - * NOTE: Since this example loads all city geo targets into memory, your PHP - * memory_limit may need to be raised for this example to work properly. + * NOTE: Since this example loads all results into memory, your PHP memory_limit + * may need to be raised for this example to work properly. * - * A full list of available PQL tables can be found at: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201405/PublisherQueryLanguageService + * A full list of available geo target types can be found at: + * https://developers.google.com/doubleclick-publishers/docs/reference/v201505/PublisherQueryLanguageService * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -30,9 +30,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -46,7 +46,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -58,27 +59,29 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201405'); + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201505'); // 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; + // Create statement to select all line items. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select( + 'Id, Name, CanonicalParentId, ParentIds, CountryCode, Type, Targetable') + ->From('Geo_Target') + ->Where('Type = :Type AND Targetable = true') + ->OrderBy('CountryCode ASC, Name ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('Type', $geoTargetType); + + // Default for result sets. + $resultSet = null; + $combinedResultSet = null; $i = 0; do { // Get all cities. - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset), $vars)); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) @@ -86,15 +89,15 @@ : Pql::CombineResultSets($combinedResultSet, $resultSet); printf("%d) %d geo targets beginning at offset %d were found.\n", $i++, - count($resultSet->rows), $offset); + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::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. @@ -103,7 +106,6 @@ fputcsv($fp, Pql::GetRowStringValues($row)); } fclose($fp); - ob_end_clean(); printf("Geo targets saved to %s\n", $filePath); } catch (OAuth2Exception $e) { diff --git a/examples/Dfp/v201405/PublisherQueryLanguageService/GetLineItemsNamedLike.php b/examples/Dfp/v201505/PublisherQueryLanguageService/GetLineItemsNamedLike.php similarity index 71% rename from examples/Dfp/v201405/PublisherQueryLanguageService/GetLineItemsNamedLike.php rename to examples/Dfp/v201505/PublisherQueryLanguageService/GetLineItemsNamedLike.php index fa614ade8..28e7de995 100755 --- a/examples/Dfp/v201405/PublisherQueryLanguageService/GetLineItemsNamedLike.php +++ b/examples/Dfp/v201505/PublisherQueryLanguageService/GetLineItemsNamedLike.php @@ -3,14 +3,17 @@ * This example gets all line items which have a name beginning with "line * item". This example may take a while to run. * + * NOTE: Since this example loads all results into memory, your PHP memory_limit + * may need to be raised for this example to work properly.* + * * The Line_Item PQL table schema can be found here: - * https://developers.google.com/doubleclick-publishers/docs/reference/v201405/PublisherQueryLanguageService#Line_Item + * https://developers.google.com/doubleclick-publishers/docs/reference/v201505/PublisherQueryLanguageService#Line_Item * * Tags: PublisherQueryLanguageService.select * * PHP version 5 * - * Copyright 2013, Google Inc. All Rights Reserved. + * Copyright 2014, 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. @@ -25,9 +28,9 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices - * @copyright 2013, Google Inc. All Rights Reserved. + * @copyright 2014, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 * @author Vincent Tsao @@ -41,7 +44,8 @@ set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php'; require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php'; try { @@ -53,20 +57,24 @@ $user->LogDefaults(); // Get the PublisherQueryLanguageService. - $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201405'); + $pqlService = $user->GetService('PublisherQueryLanguageService', 'v201505'); + + // Create statement to select line items whose names begin with "line item". + $statementBuilder = new StatementBuilder(); + $statementBuilder->Select('Id, Name, Status') + ->From('Line_Item') + ->Where('Name LIKE \'line item%\'') + ->OrderBy('Id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - // 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; + // Default for result sets. + $combinedResultSet = null; + $resultSet = null; $i = 0; do { // Get line items like 'line item%'. - $resultSet = $pqlService->select(new Statement(sprintf($pqlTemplate, - $SUGGESTED_PAGE_LIMIT, $offset))); + $resultSet = $pqlService->select($statementBuilder->ToStatement()); // Combine result sets with previous ones. $combinedResultSet = (!isset($combinedResultSet)) @@ -74,9 +82,10 @@ : Pql::CombineResultSets($combinedResultSet, $resultSet); printf("%d) %d line items beginning at offset %d were found.\n", $i++, - count($resultSet->rows), $offset); + isset($resultSet->rows) ? count($resultSet->rows) : 0, + $statementBuilder->GetOffset()); - $offset += $SUGGESTED_PAGE_LIMIT; + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); } while (isset($resultSet->rows) && count($resultSet->rows) > 0); // Change to your file location. diff --git a/examples/Dfp/v201505/RateCardService/GetAllRateCards.php b/examples/Dfp/v201505/RateCardService/GetAllRateCards.php new file mode 100755 index 000000000..e5f8f4a5e --- /dev/null +++ b/examples/Dfp/v201505/RateCardService/GetAllRateCards.php @@ -0,0 +1,89 @@ +LogDefaults(); + + // Get the RateCardService. + $rateCardService = $user->GetService('RateCardService', 'v201505'); + + // Create a statement to select all rate cards. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get rate cards by statement. + $page = $rateCardService->getRateCardsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $rateCard) { + printf("%d) Rate card with ID %d, name '%s', and currency '%s' was " + . "found.\n", $i++, $rateCard->id, $rateCard->name, + $rateCard->currencyCode); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/RateCardService/GetUsdRateCards.php b/examples/Dfp/v201505/RateCardService/GetUsdRateCards.php new file mode 100755 index 000000000..880ac2e6f --- /dev/null +++ b/examples/Dfp/v201505/RateCardService/GetUsdRateCards.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the RateCardService. + $rateCardService = $user->GetService('RateCardService', 'v201505'); + + // Create a statement to select only rate cards that have a currency in US + // dollars. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('currencyCode = :currencyCode') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('currencyCode', 'USD'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get rate cards by statement. + $page = $rateCardService->getRateCardsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $rateCard) { + printf("%d) Rate card with ID %d, name '%s', and currency '%s' was " + . "found.\n", + $i++, + $rateCard->id, + $rateCard->name, + $rateCard->currencyCode + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/ReportService/RunDeliveryReportExample.php b/examples/Dfp/v201505/ReportService/RunDeliveryReportForOrder.php similarity index 61% rename from examples/Dfp/v201405/ReportService/RunDeliveryReportExample.php rename to examples/Dfp/v201505/ReportService/RunDeliveryReportForOrder.php index f82b5bfeb..e8897de00 100755 --- a/examples/Dfp/v201405/ReportService/RunDeliveryReportExample.php +++ b/examples/Dfp/v201505/ReportService/RunDeliveryReportForOrder.php @@ -1,15 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); - - // 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(); + $reportService = $user->GetService('ReportService', 'v201505'); // 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; + + // Create statement to filter for an order. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('order_id = :orderId')->WithBindVariableValue( + 'orderId', $orderId); + + // Set the filter statement. + $reportQuery->statement = $statementBuilder->ToStatement(); + + // Set the start and end dates or choose a dynamic date range type. + $reportQuery->dateRangeType = 'LAST_MONTH'; + + // Create report job. + $reportJob = new ReportJob(); $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); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'delivery-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/ReportService/RunInventoryReportExample.php b/examples/Dfp/v201505/ReportService/RunInventoryReport.php similarity index 62% rename from examples/Dfp/v201405/ReportService/RunInventoryReportExample.php rename to examples/Dfp/v201505/ReportService/RunInventoryReport.php index d6029529b..6fac8d037 100755 --- a/examples/Dfp/v201405/ReportService/RunInventoryReportExample.php +++ b/examples/Dfp/v201505/ReportService/RunInventoryReport.php @@ -1,14 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); + $reportService = $user->GetService('ReportService', 'v201505'); // Get the NetworkService. - $networkService = $user->GetService('NetworkService', 'v201405'); + $networkService = $user->GetService('NetworkService', 'v201505'); // Get the root ad unit ID to filter on. $rootAdUnitId = $networkService->getCurrentNetwork()->effectiveRootAdUnitId; - // Create bind variables. - $vars = MapUtils::GetMapEntries(array('parentAdUnitId' => - new NumberValue($rootAdUnitId))); - - // Create statement text to filter based on a parent ad unit id. - $filterStatementText = - 'WHERE PARENT_AD_UNIT_ID = :parentAdUnitId'; - - // Create statement object from text. - $filterStatement = new Statement($filterStatementText, $vars); - - // Create report job. - $reportJob = new ReportJob(); + // Create statement to filter on a parent ad unit with the root ad unit ID to + // include all ad units in the network. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('PARENT_AD_UNIT_ID = :parentAdUnitId') + ->WithBindVariableValue('parentAdUnitId', intval($rootAdUnitId)); // 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; + + // Set the filter statement. + $reportQuery->statement = $statementBuilder->ToStatement(); + + // Set the ad unit view to hierarchical. $reportQuery->adUnitView = 'HIERARCHICAL'; + + // Set the start and end dates or choose a dynamic date range type. + $reportQuery->dateRangeType = 'YESTERDAY'; + + // Create report job. + $reportJob = new ReportJob(); $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); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'inventory-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/ReportService/RunReachReportExample.php b/examples/Dfp/v201505/ReportService/RunReachReport.php similarity index 64% rename from examples/Dfp/v201405/ReportService/RunReachReportExample.php rename to examples/Dfp/v201505/ReportService/RunReachReport.php index e8161eae5..b250c558a 100755 --- a/examples/Dfp/v201405/ReportService/RunReachReportExample.php +++ b/examples/Dfp/v201505/ReportService/RunReachReport.php @@ -1,14 +1,12 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); - - // Create report job. - $reportJob = new ReportJob(); + $reportService = $user->GetService('ReportService', 'v201505'); // 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', + $reportQuery->columns = array('REACH_FREQUENCY', 'REACH_AVERAGE_REVENUE', 'REACH'); + + // Set the dynamic date range type or a custom start and end date that is + // the beginning of the week (Sunday) to the end of the week (Saturday), or + // the first of the month to the end of the month. + $reportQuery->dateRangeType = 'REACH_LIFETIME'; + + // Create report job. + $reportJob = new ReportJob(); $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); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'reach-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { diff --git a/examples/Dfp/v201405/ReportService/RunMergedDeliveryReportExample.php b/examples/Dfp/v201505/ReportService/RunReportWithCustomFields.php similarity index 57% rename from examples/Dfp/v201405/ReportService/RunMergedDeliveryReportExample.php rename to examples/Dfp/v201505/ReportService/RunReportWithCustomFields.php index 278b5d6f4..64e494c2b 100755 --- a/examples/Dfp/v201405/ReportService/RunMergedDeliveryReportExample.php +++ b/examples/Dfp/v201505/ReportService/RunReportWithCustomFields.php @@ -1,15 +1,13 @@ LogDefaults(); // Get the ReportService. - $reportService = $user->GetService('ReportService', 'v201405'); + $reportService = $user->GetService('ReportService', 'v201505'); - // Create report job. - $reportJob = new ReportJob(); + // Set the ID of the custom field to include in the report. + $CUSTOM_FIELD_ID = "INSERT_CUSTOM_FIELD_ID_HERE"; // Create report query. $reportQuery = new ReportQuery(); + $reportQuery->dimensions = array('DATE', 'LINE_ITEM_ID'); + $reportQuery->columns = array('AD_SERVER_IMPRESSIONS'); + + // Set the dynamic date range type or a custom start and end date. $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'); + + // Set the custom field IDs. + $reportQuery->customFieldIds = array($CUSTOM_FIELD_ID); + + // Create report job. + $reportJob = new ReportJob(); $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); - } + // Create report downloader. + $reportDownloader = new ReportDownloader($reportService, $reportJob->id); + + // Wait for the report to be ready. + $reportDownloader->waitForReportReady(); + + // Change to your file location. + $filePath = sprintf('%s.csv.gz', tempnam(sys_get_temp_dir(), + 'custom-field-report-')); + + printf("Downloading report to %s ...\n", $filePath); + + // Download the report. + $reportDownloader->downloadReport('CSV_DUMP', $filePath); + + printf("done.\n"); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/SuggestedAdUnitService/ApproveSuggestedAdUnits.php b/examples/Dfp/v201505/SuggestedAdUnitService/ApproveSuggestedAdUnits.php new file mode 100755 index 000000000..1077d0e5a --- /dev/null +++ b/examples/Dfp/v201505/SuggestedAdUnitService/ApproveSuggestedAdUnits.php @@ -0,0 +1,119 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201505'); + + // Create a statement to only select suggested ad units that are highly + // requested. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('numRequests >= :numRequests') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('numRequests', $numRequests); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get suggested ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $adUnit) { + printf("%d) Suggested ad unit with ID %s, and number of requests %d " + . "will be approved.\n", $i++, $adUnit->id, $adUnit->numRequests); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of suggested ad units to be approved: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ApproveSuggestedAdUnit(); + + // Perform action. + $result = $suggestedAdUnitService->performSuggestedAdUnitAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of new ad units created: %d\n", + count($result->newAdUnitIds)); + } else { + printf("No suggested ad units were approved.\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/v201405/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php b/examples/Dfp/v201505/SuggestedAdUnitService/GetAllSuggestedAdUnits.php similarity index 63% rename from examples/Dfp/v201405/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php rename to examples/Dfp/v201505/SuggestedAdUnitService/GetAllSuggestedAdUnits.php index 0b5861762..2de9b8f58 100755 --- a/examples/Dfp/v201405/SuggestedAdUnitService/GetAllSuggestedAdUnitsExample.php +++ b/examples/Dfp/v201505/SuggestedAdUnitService/GetAllSuggestedAdUnits.php @@ -1,14 +1,13 @@ LogDefaults(); // Get the SuggestedAdUnitService. - $suggestedAdUnitService = - $user->GetService('SuggestedAdUnitService', 'v201405'); + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201505'); - // Set defaults for page and statement. - $page = new SuggestedAdUnitPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all suggested ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all suggested ad units. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; - // Get creatives by statement. + do { + // Get suggested ad units by statement. $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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, + 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); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php b/examples/Dfp/v201505/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php new file mode 100755 index 000000000..aa5ef0fc5 --- /dev/null +++ b/examples/Dfp/v201505/SuggestedAdUnitService/GetHighlyRequestedSuggestedAdUnits.php @@ -0,0 +1,98 @@ +LogDefaults(); + + // Get the SuggestedAdUnitService. + $suggestedAdUnitService = $user->GetService('SuggestedAdUnitService', + 'v201505'); + + // Create a statement to select only highly requested suggested ad units. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('numRequests >= :numRequests') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('numRequests', $numRequests); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get suggested ad units by statement. + $page = $suggestedAdUnitService->getSuggestedAdUnitsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $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); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/TeamService/CreateTeamsExample.php b/examples/Dfp/v201505/TeamService/CreateTeams.php similarity index 95% rename from examples/Dfp/v201405/TeamService/CreateTeamsExample.php rename to examples/Dfp/v201505/TeamService/CreateTeams.php index f68c8a921..581376bdf 100755 --- a/examples/Dfp/v201405/TeamService/CreateTeamsExample.php +++ b/examples/Dfp/v201505/TeamService/CreateTeams.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201405'); + $teamService = $user->GetService('TeamService', 'v201505'); // Create an array to store local team objects. $teams = array(); diff --git a/examples/Dfp/v201405/TeamService/GetAllTeamsExample.php b/examples/Dfp/v201505/TeamService/GetAllTeams.php similarity index 61% rename from examples/Dfp/v201405/TeamService/GetAllTeamsExample.php rename to examples/Dfp/v201505/TeamService/GetAllTeams.php index 90da9faa0..cfffb9b8a 100755 --- a/examples/Dfp/v201405/TeamService/GetAllTeamsExample.php +++ b/examples/Dfp/v201505/TeamService/GetAllTeams.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the TeamService. - $teamService = $user->GetService('TeamService', 'v201405'); + $teamService = $user->GetService('TeamService', 'v201505'); - // Set defaults for page and statement. - $page = new TeamPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all teams. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all teams. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get teams by statement. - $page = $teamService->getTeamsByStatement($filterStatement); + $page = $teamService->getTeamsByStatement( + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $i = $page->startIndex; foreach ($page->results as $team) { - print $i . ') Team with ID "' . $team->id - . '" and name "' . $team->name - . "\" was found.\n"; - $i++; + printf("%d) Team with ID %d, and name '%s' was found.\n", $i++, + $team->id, $team->name); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/TeamService/UpdateTeams.php b/examples/Dfp/v201505/TeamService/UpdateTeams.php new file mode 100755 index 000000000..ad10f1102 --- /dev/null +++ b/examples/Dfp/v201505/TeamService/UpdateTeams.php @@ -0,0 +1,96 @@ +LogDefaults(); + + // Get the TeamService. + $teamService = $user->GetService('TeamService', 'v201505'); + + // Create a statement to select a single team by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $teamId); + + // Get the team. + $page = $teamService->getTeamsByStatement( + $statementBuilder->ToStatement()); + $team = $page->results[0]; + + // Don't add ad unit if the team has all inventory already. + if (!$team->hasAllInventory) { + // Update the team's ad units. + $team->adUnitIds[] = $adUnitId; + + // Update the team on the server. + $teams = $teamService->updateTeams(array($team)); + + foreach ($teams as $updatedTeam) { + printf("Team with ID %d, name '%s' was updated.\n", $updatedTeam->id, + $updatedTeam->name); + } + } else { + printf('No teams were updated.'); + } +} 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/v201405/UserService/CreateUsersExample.php b/examples/Dfp/v201505/UserService/CreateUsers.php similarity index 93% rename from examples/Dfp/v201405/UserService/CreateUsersExample.php rename to examples/Dfp/v201505/UserService/CreateUsers.php index 4b8b3d50c..72c53263c 100755 --- a/examples/Dfp/v201405/UserService/CreateUsersExample.php +++ b/examples/Dfp/v201505/UserService/CreateUsers.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); + $userService = $user->GetService('UserService', 'v201505'); // Set the user's email addresses and names. $emailAndNames = @@ -58,7 +58,7 @@ array('INSERT_ANOTHER_EMAIL_ADDRESS_HERE', 'INSERT_ANOTHER_NAME_HERE')); - // Roles can be obtained by running GetAllRolesExample.php. + // Roles can be obtained by running GetAllRoles.php. $roleId = 'INSERT_ROLE_ID_HERE'; // Create an array to store local user objects. diff --git a/examples/Dfp/v201505/UserService/DeactivateUsers.php b/examples/Dfp/v201505/UserService/DeactivateUsers.php new file mode 100755 index 000000000..b243c35f2 --- /dev/null +++ b/examples/Dfp/v201505/UserService/DeactivateUsers.php @@ -0,0 +1,113 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201505'); + + // Create a statement to select a single user by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $userId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get users by statement. + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' will be " + . "deactivated.\n", $i++, $user->id, $user->email, $user->roleName); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of users to be deactivated: %d\n", $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeactivateUsers(); + + // Perform action. + $result = $userService->performUserAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of users deactivated: %d\n", $result->numChanges); + } else { + printf("No users were deactivated.\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/v201405/UserService/GetAllRolesExample.php b/examples/Dfp/v201505/UserService/GetAllRoles.php similarity index 72% rename from examples/Dfp/v201405/UserService/GetAllRolesExample.php rename to examples/Dfp/v201505/UserService/GetAllRoles.php index fe0d99b49..d148bdd93 100755 --- a/examples/Dfp/v201405/UserService/GetAllRolesExample.php +++ b/examples/Dfp/v201505/UserService/GetAllRoles.php @@ -1,13 +1,12 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); + $userService = $user->GetService('UserService', 'v201505'); // 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"; - } + $i = 0; + foreach ($roles as $role) { + printf("%d) Role with ID %d and name '%s' was found.\n", $i++, $role->id, + $role->name); } - print 'Number of results found: ' . sizeof($roles) . "\n"; + + printf("Number of results found: %d\n", count($roles)); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/UserService/GetAllUsersExample.php b/examples/Dfp/v201505/UserService/GetAllUsers.php similarity index 61% rename from examples/Dfp/v201405/UserService/GetAllUsersExample.php rename to examples/Dfp/v201505/UserService/GetAllUsers.php index 583e1ab2f..83e84ca4c 100755 --- a/examples/Dfp/v201405/UserService/GetAllUsersExample.php +++ b/examples/Dfp/v201505/UserService/GetAllUsers.php @@ -1,12 +1,12 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); + $userService = $user->GetService('UserService', 'v201505'); - // Set defaults for page and statement. - $page = new UserPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all users. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all users. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); + $page = $userService->getUsersByStatement( + $statementBuilder->ToStatement()); + // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' was found.\n", + $i++, $user->id, $user->email, $user->roleName); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print "Number of results found: " . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/UserService/GetCurrentUserExample.php b/examples/Dfp/v201505/UserService/GetCurrentUser.php similarity index 95% rename from examples/Dfp/v201405/UserService/GetCurrentUserExample.php rename to examples/Dfp/v201505/UserService/GetCurrentUser.php index 3dc7c3365..b831cdd4d 100755 --- a/examples/Dfp/v201405/UserService/GetCurrentUserExample.php +++ b/examples/Dfp/v201505/UserService/GetCurrentUser.php @@ -21,7 +21,7 @@ * limitations under the License. * * @package GoogleApiAdsDfp - * @subpackage v201405 + * @subpackage v201505 * @category WebServices * @copyright 2013, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, @@ -48,7 +48,7 @@ $user->LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); + $userService = $user->GetService('UserService', 'v201505'); // Get the current user. $usr = $userService->getCurrentUser(); diff --git a/examples/Dfp/v201405/UserService/GetUserExample.php b/examples/Dfp/v201505/UserService/GetUser.php similarity index 95% rename from examples/Dfp/v201405/UserService/GetUserExample.php rename to examples/Dfp/v201505/UserService/GetUser.php index c1cac9498..f5aca9254 100755 --- a/examples/Dfp/v201405/UserService/GetUserExample.php +++ b/examples/Dfp/v201505/UserService/GetUser.php @@ -1,7 +1,7 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); + $userService = $user->GetService('UserService', 'v201505'); // Set the ID of the user to get. $userId = 'INSERT_USER_ID_HERE'; diff --git a/examples/Dfp/v201505/UserService/GetUsersByEmailAddress.php b/examples/Dfp/v201505/UserService/GetUsersByEmailAddress.php new file mode 100755 index 000000000..ee4f8d734 --- /dev/null +++ b/examples/Dfp/v201505/UserService/GetUsersByEmailAddress.php @@ -0,0 +1,92 @@ +LogDefaults(); + + // Get the UserService. + $userService = $user->GetService('UserService', 'v201505'); + + // Create a statement to select users by email. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('email = :email') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('email', $emailAddress); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get users by statement. + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $user) { + printf("%d) User with ID %d, email '%s', and role '%s' was found.\n", + $i++, $user->id, $user->email, $user->roleName); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/UserService/UpdateUsersExample.php b/examples/Dfp/v201505/UserService/UpdateUsers.php similarity index 56% rename from examples/Dfp/v201405/UserService/UpdateUsersExample.php rename to examples/Dfp/v201505/UserService/UpdateUsers.php index 264d5d75e..2ac51431a 100755 --- a/examples/Dfp/v201405/UserService/UpdateUsersExample.php +++ b/examples/Dfp/v201505/UserService/UpdateUsers.php @@ -1,15 +1,14 @@ LogDefaults(); // Get the UserService. - $userService = $user->GetService('UserService', 'v201405'); - - // Create a statement to get all users. - $filterStatement = new Statement('LIMIT 500'); + $userService = $user->GetService('UserService', 'v201505'); - // Get users by statement. - $page = $userService->getUsersByStatement($filterStatement); + // Create a statement to select a single user by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('id = :id') + ->OrderBy('id ASC') + ->Limit(1) + ->WithBindVariableValue('id', $userId); - if (isset($page->results)) { - $users = $page->results; + // Get the user. + $page = $userService->getUsersByStatement($statementBuilder->ToStatement()); + $user = $page->results[0]; - // Update each local user object by changing its name. - foreach ($users as $usr) { - $usr->name .= ' Sr.'; - } + // Set the role of the user to a salesperson. + // To determine what other roles exist, run GetAllRoles.php. + $user->roleId = -5; - // Update the users on the server. - $users = $userService->updateUsers($users); + // Update the user on the server. + $users = $userService->updateUsers(array($user)); - // 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"; + foreach ($users as $updatedUser) { + printf("User with ID %d, name '%s' was updated.\n", $updatedUser->id, + $updatedUser->name); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201405/UserTeamAssociationService/CreateUserTeamAssociationsExample.php b/examples/Dfp/v201505/UserTeamAssociationService/CreateUserTeamAssociations.php similarity index 92% rename from examples/Dfp/v201405/UserTeamAssociationService/CreateUserTeamAssociationsExample.php rename to examples/Dfp/v201505/UserTeamAssociationService/CreateUserTeamAssociations.php index 111a5de97..f4d861caa 100755 --- a/examples/Dfp/v201405/UserTeamAssociationService/CreateUserTeamAssociationsExample.php +++ b/examples/Dfp/v201505/UserTeamAssociationService/CreateUserTeamAssociations.php @@ -1,8 +1,8 @@ GetService('UserTeamAssociationService', 'v201405'); + $user->GetService('UserTeamAssociationService', 'v201505'); // Set the team ID and user IDs to associate together. $teamId = 'INSERT_TEAM_ID_HERE'; diff --git a/examples/Dfp/v201505/UserTeamAssociationService/DeleteUserTeamAssociations.php b/examples/Dfp/v201505/UserTeamAssociationService/DeleteUserTeamAssociations.php new file mode 100755 index 000000000..1c3398483 --- /dev/null +++ b/examples/Dfp/v201505/UserTeamAssociationService/DeleteUserTeamAssociations.php @@ -0,0 +1,120 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201505'); + + // Create a statement to get all user team associations for a user. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId') + ->OrderBy('userId ASC, teamid ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('userId', $userId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association with user ID %d, and team ID %d will " + . "be deleted.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of user team associations to be deleted: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new DeleteUserTeamAssociations(); + + // Perform action. + $result = $userTeamAssociationService->performUserTeamAssociationAction( + $action, $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of user team associations deleted: %d\n", + $result->numChanges); + } else { + printf("No user team associations were deleted.\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/v201405/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php b/examples/Dfp/v201505/UserTeamAssociationService/GetAllUserTeamAssociations.php similarity index 58% rename from examples/Dfp/v201405/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php rename to examples/Dfp/v201505/UserTeamAssociationService/GetAllUserTeamAssociations.php index 0019755e9..f490f7a81 100755 --- a/examples/Dfp/v201405/UserTeamAssociationService/GetAllUserTeamAssociationsExample.php +++ b/examples/Dfp/v201505/UserTeamAssociationService/GetAllUserTeamAssociations.php @@ -1,13 +1,13 @@ LogDefaults(); // Get the UserTeamAssociationService. - $userTeamAssociationService = - $user->GetService('UserTeamAssociationService', 'v201405'); + $userTeamAssociationService = $user->GetService('UserTeamAssociationService', + 'v201505'); - // Set defaults for page and statement. - $page = new UserTeamAssociationPage(); - $filterStatement = new Statement(); - $offset = 0; + // Create a statement to select all user team associations. + $statementBuilder = new StatementBuilder(); + $statementBuilder->OrderBy('teamId ASC, userId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT); - do { - // Create a statement to get all user team associations. - $filterStatement->query = 'LIMIT 500 OFFSET ' . $offset; + // Default for total result set size. + $totalResultSetSize = 0; + do { // Get user team associations by statement. $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); + $statementBuilder->ToStatement()); // Display results. if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; $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++; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association between user with ID %d, and team " + . "with ID %d was found.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); } } - $offset += 500; - } while ($offset < $page->totalResultSetSize); + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); - print 'Number of results found: ' . $page->totalResultSetSize . "\n"; + printf("Number of results found: %d\n", $totalResultSetSize); } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/UserTeamAssociationService/GetUserTeamAssociationsForUser.php b/examples/Dfp/v201505/UserTeamAssociationService/GetUserTeamAssociationsForUser.php new file mode 100755 index 000000000..501311476 --- /dev/null +++ b/examples/Dfp/v201505/UserTeamAssociationService/GetUserTeamAssociationsForUser.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the UserTeamAssociationService. + $userTeamAssociationService = + $user->GetService('UserTeamAssociationService', 'v201505'); + + // Create a statement to select all user team associations (i.e., teams) for + // a given user. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId') + ->OrderBy('userId ASC, teamId ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('userId', $userId); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get user team associations by statement. + $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $userTeamAssociation) { + printf("%d) User team association between user with ID %d, and team " + . "with ID %d was found.\n", $i++, $userTeamAssociation->userId, + $userTeamAssociation->teamId); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201405/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php b/examples/Dfp/v201505/UserTeamAssociationService/UpdateUserTeamAssociations.php similarity index 52% rename from examples/Dfp/v201405/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php rename to examples/Dfp/v201505/UserTeamAssociationService/UpdateUserTeamAssociations.php index 5cb92c40c..c751a852f 100755 --- a/examples/Dfp/v201405/UserTeamAssociationService/UpdateUserTeamAssociationsExample.php +++ b/examples/Dfp/v201505/UserTeamAssociationService/UpdateUserTeamAssociations.php @@ -1,15 +1,14 @@ GetService('UserTeamAssociationService', 'v201405'); - - // Set the user to set to read only access within its teams. - $userId = "INSERT_USER_ID_HERE"; + $user->GetService('UserTeamAssociationService', 'v201505'); - // 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); + // Create a statement to select a single user team association by ID. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('userId = :userId AND teamId = :teamId') + ->OrderBy('userId ASC, teamId ASC') + ->Limit(1) + ->WithBindVariableValue('userId', $userId) + ->WithBindVariableValue('teamId', $teamId); + // Get the user team association. $page = $userTeamAssociationService->getUserTeamAssociationsByStatement( - $filterStatement); - - if (isset($page->results)) { - $utas = $page->results; + $statementBuilder->ToStatement()); + $userTeamAssociation = $page->results[0]; - // Update each local user team association to read only access. - foreach ($utas as $uta) { - $uta->overriddenTeamAccessType = 'READ_ONLY'; - } + // Update the user's access type on the team. + $userTeamAssociation->overriddenTeamAccessType = 'READ_ONLY'; - // Update the user team associations on the server. - $utas = $userTeamAssociationService->updateUserTeamAssociations($utas); + // Update the user team association on the server. + $userTeamAssociations = + $userTeamAssociationService->updateUserTeamAssociations( + array($userTeamAssociation)); - // 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"; + foreach ($userTeamAssociations as $updatedUserTeamAssociation) { + printf("User team association with user ID %d, and team ID %d was " + . "updated.\n", $updatedUserTeamAssociation->userId, + $updatedUserTeamAssociation->teamId); } } catch (OAuth2Exception $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (ValidationException $e) { ExampleUtils::CheckForOAuth2Errors($e); } catch (Exception $e) { - print $e->getMessage() . "\n"; + printf("%s\n", $e->getMessage()); } diff --git a/examples/Dfp/v201505/WorkflowRequestService/ApproveWorkflowApprovalRequests.php b/examples/Dfp/v201505/WorkflowRequestService/ApproveWorkflowApprovalRequests.php new file mode 100755 index 000000000..5a92b72fa --- /dev/null +++ b/examples/Dfp/v201505/WorkflowRequestService/ApproveWorkflowApprovalRequests.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201505'); + + // Create a statement to select workflow approval requests for a proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('WHERE entityId = :entityId and entityType = ' + . ':entityType and type = :type') + ->OrderBy('id ASC') + ->WithBindVariableValue('entityId', $proposalId) + ->WithBindVariableValue('entityType', 'PROPOSAL') + ->WithBindVariableValue('type', 'WORKFLOW_APPROVAL_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow approval request with ID %d, for '%s', with ID %d " + . "will be approved.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of workflow approval requests to be approved: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new ApproveWorkflowApprovalRequests(); + + // Add a comment to the approval. + $action->comment = 'The proposal looks good to me. Approved.'; + + // Perform action. + $result = $workflowRequestService->performWorkflowRequestAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of workflow approval requests approved: %d\n", + $result->numChanges); + } else { + printf("No workflow approval requests were approved.\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/v201505/WorkflowRequestService/GetWorkflowApprovalRequests.php b/examples/Dfp/v201505/WorkflowRequestService/GetWorkflowApprovalRequests.php new file mode 100755 index 000000000..c1af52400 --- /dev/null +++ b/examples/Dfp/v201505/WorkflowRequestService/GetWorkflowApprovalRequests.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201505'); + + // Create a statement to select only workflow approval requests. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'WORKFLOW_APPROVAL_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow approval request with ID %d, for '%s', with ID %d " + . "was found.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/WorkflowRequestService/GetWorkflowExternalConditionRequests.php b/examples/Dfp/v201505/WorkflowRequestService/GetWorkflowExternalConditionRequests.php new file mode 100755 index 000000000..444378c43 --- /dev/null +++ b/examples/Dfp/v201505/WorkflowRequestService/GetWorkflowExternalConditionRequests.php @@ -0,0 +1,97 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201505'); + + // Create a statement to select only workflow external condition requests. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('type = :type') + ->OrderBy('id ASC') + ->Limit(StatementBuilder::SUGGESTED_PAGE_LIMIT) + ->WithBindVariableValue('type', 'WORKFLOW_EXTERNAL_CONDITION_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow external condition request with ID %d, for '%s', " + . "with ID %d was found.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of results found: %d\n", $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/v201505/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php b/examples/Dfp/v201505/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php new file mode 100755 index 000000000..4b0e0c6dd --- /dev/null +++ b/examples/Dfp/v201505/WorkflowRequestService/TriggerWorkflowExternalConditionRequests.php @@ -0,0 +1,127 @@ +LogDefaults(); + + // Get the WorkflowRequestService. + $workflowRequestService = $user->GetService('WorkflowRequestService', + 'v201505'); + + // Create a statement to select workflow external condition requests for a + // proposal. + $statementBuilder = new StatementBuilder(); + $statementBuilder->Where('WHERE entityId = :entityId and entityType = ' + . ':entityType and type = :type') + ->OrderBy('id ASC') + ->WithBindVariableValue('entityId', $proposalId) + ->WithBindVariableValue('entityType', 'PROPOSAL') + ->WithBindVariableValue('type', 'WORKFLOW_EXTERNAL_CONDITION_REQUEST'); + + // Default for total result set size. + $totalResultSetSize = 0; + + do { + // Get workflow requests by statement. + $page = $workflowRequestService->getWorkflowRequestsByStatement( + $statementBuilder->ToStatement()); + + // Display results. + if (isset($page->results)) { + $totalResultSetSize = $page->totalResultSetSize; + $i = $page->startIndex; + foreach ($page->results as $workflowRequest) { + printf("%d) Workflow external condition request with ID %d, for '%s', " + . "with ID %d will be triggerd.\n", + $i++, + $workflowRequest->id, + $workflowRequest->entityType, + $workflowRequest->entityId + ); + } + } + + $statementBuilder->IncreaseOffsetBy(StatementBuilder::SUGGESTED_PAGE_LIMIT); + } while ($statementBuilder->GetOffset() < $totalResultSetSize); + + printf("Number of workflow external condition requests to be triggerd: %d\n", + $totalResultSetSize); + + if ($totalResultSetSize > 0) { + // Remove limit and offset from statement. + $statementBuilder->RemoveLimitAndOffset(); + + // Create action. + $action = new TriggerWorkflowExternalConditionRequests(); + + // Perform action. + $result = $workflowRequestService->performWorkflowRequestAction($action, + $statementBuilder->ToStatement()); + + // Display results. + if (isset($result) && $result->numChanges > 0) { + printf("Number of workflow external condition requests triggerd: %d\n", + $result->numChanges); + } else { + printf("No workflow external condition requests were triggerd.\n"); + } + } +} catch (OAuth2Exception $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (ValidationException $e) { + ExampleUtils::CheckForOAuth2Errors($e); +} catch (Exception $e) { + printf("%s\n", $e->getMessage()); +} + diff --git a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php index 5f9821d8d..4bace0410 100755 --- a/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php +++ b/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php @@ -25,10 +25,7 @@ * @copyright 2011, Google Inc. All Rights Reserved. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, * Version 2.0 - * @author Adam Rogal - * @author Eric Koleda * @author Vincent Tsao - * @author Paul Matthews * @see AdsUser */ require_once dirname(__FILE__) . '/../../Common/Lib/AdsUser.php'; @@ -84,8 +81,6 @@ class AdWordsUser extends AdsUser { * loaded * @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 @@ -97,9 +92,8 @@ class AdWordsUser extends AdsUser { * @param array $oauth2Info the OAuth 2.0 information to use for requests */ public function __construct($authenticationIniPath = NULL, - $developerToken = NULL, $applicationToken = NULL, - $userAgent = NULL, $clientCustomerId = NULL, $settingsIniPath = NULL, - $oauth2Info = NULL) { + $developerToken = NULL, $userAgent = NULL, $clientCustomerId = NULL, + $settingsIniPath = NULL, $oauth2Info = NULL) { parent::__construct(); $buildIniAw = parse_ini_file(dirname(__FILE__) . '/build.ini', @@ -125,8 +119,6 @@ public function __construct($authenticationIniPath = NULL, $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, @@ -146,7 +138,6 @@ public function __construct($authenticationIniPath = NULL, $this->SetClientLibraryUserAgent($userAgent); $this->SetClientCustomerId($clientCustomerId); $this->SetDeveloperToken($developerToken); - $this->SetApplicationToken($applicationToken); if (!isset($settingsIniPath)) { $settingsIniPath = dirname(__FILE__) . '/../settings.ini'; @@ -264,22 +255,6 @@ 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 diff --git a/src/Google/Api/Ads/AdWords/v201409/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201409/AdGroupAdService.php index 713eb9196..9ae13823c 100755 --- a/src/Google/Api/Ads/AdWords/v201409/AdGroupAdService.php +++ b/src/Google/Api/Ads/AdWords/v201409/AdGroupAdService.php @@ -3359,9 +3359,14 @@ public function __construct($field = null, $operator = null, $values = null) { * pulled from the Google base product feed specified in the parent campaign's * {@linkplain ShoppingSetting shopping setting}. * - *

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

+ *

Caution: Product ads do not use {@link #url url}, + * {@link #finalUrls finalUrls}, {@link #finalMobileUrls finalMobileUrls}, + * {@link #finalAppUrls finalAppUrls}, or {@link #displayUrl displayUrl}; + * setting these fields on a product ad will cause an error. + * {@link #urlCustomParameters urlCustomParameters} and + * {@link #trackingUrlTemplate trackingUrlTemplate} can be set, but it is not + * recommended, as they will not be used; they should be set at the ad group or + * campaign level instead.

* This is disabled for AdX when it is contained within Operators: ADD, SET. * @package Google_Api_Ads_AdWords_v201409 * @subpackage v201409 diff --git a/src/Google/Api/Ads/AdWords/v201409/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201409/MutateJobService.php index 0829fcd02..1e9978f8c 100755 --- a/src/Google/Api/Ads/AdWords/v201409/MutateJobService.php +++ b/src/Google/Api/Ads/AdWords/v201409/MutateJobService.php @@ -9393,9 +9393,14 @@ public function __construct($conditions = null, $text = null, $id = null, $type * pulled from the Google base product feed specified in the parent campaign's * {@linkplain ShoppingSetting shopping setting}. * - *

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

+ *

Caution: Product ads do not use {@link #url url}, + * {@link #finalUrls finalUrls}, {@link #finalMobileUrls finalMobileUrls}, + * {@link #finalAppUrls finalAppUrls}, or {@link #displayUrl displayUrl}; + * setting these fields on a product ad will cause an error. + * {@link #urlCustomParameters urlCustomParameters} and + * {@link #trackingUrlTemplate trackingUrlTemplate} can be set, but it is not + * recommended, as they will not be used; they should be set at the ad group or + * campaign level instead.

* This is disabled for AdX when it is contained within Operators: ADD, SET. * @package Google_Api_Ads_AdWords_v201409 * @subpackage v201409 diff --git a/src/Google/Api/Ads/AdWords/v201502/AdGroupAdService.php b/src/Google/Api/Ads/AdWords/v201502/AdGroupAdService.php index 5be98f47c..f839afebd 100755 --- a/src/Google/Api/Ads/AdWords/v201502/AdGroupAdService.php +++ b/src/Google/Api/Ads/AdWords/v201502/AdGroupAdService.php @@ -3432,9 +3432,14 @@ public function __construct($field = null, $operator = null, $values = null) { * pulled from the Google base product feed specified in the parent campaign's * {@linkplain ShoppingSetting shopping setting}. * - *

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

+ *

Caution: Product ads do not use {@link #url url}, + * {@link #finalUrls finalUrls}, {@link #finalMobileUrls finalMobileUrls}, + * {@link #finalAppUrls finalAppUrls}, or {@link #displayUrl displayUrl}; + * setting these fields on a product ad will cause an error. + * {@link #urlCustomParameters urlCustomParameters} and + * {@link #trackingUrlTemplate trackingUrlTemplate} can be set, but it is not + * recommended, as they will not be used; they should be set at the ad group or + * campaign level instead.

* This is disabled for AdX when it is contained within Operators: ADD, SET. * @package Google_Api_Ads_AdWords_v201502 * @subpackage v201502 diff --git a/src/Google/Api/Ads/AdWords/v201502/ConversionTrackerService.php b/src/Google/Api/Ads/AdWords/v201502/ConversionTrackerService.php index 17b0688c1..ef5cce2dd 100755 --- a/src/Google/Api/Ads/AdWords/v201502/ConversionTrackerService.php +++ b/src/Google/Api/Ads/AdWords/v201502/ConversionTrackerService.php @@ -2389,6 +2389,14 @@ public function __construct($rval = null) { * SET operation for the conversion tracker with the status * property set to DISABLED

* + *

You can mutate any ConversionTracker that belongs to your account. You may not + * mutate a ConversionTracker that belongs to some other account. You may not directly + * mutate a system-defined ConversionTracker, but you can create a mutable copy of it + * in your account by sending a mutate request with an ADD operation specifying + * an originalConversionTypeId matching a system-defined conversion tracker's ID. That new + * ADDed ConversionTracker will inherit the statistics and properties + * of the system-defined type, but will be editable as usual.

+ * * @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. @@ -4523,6 +4531,14 @@ public function get($serviceSelector) { * SET operation for the conversion tracker with the status * property set to DISABLED

* + *

You can mutate any ConversionTracker that belongs to your account. You may not + * mutate a ConversionTracker that belongs to some other account. You may not directly + * mutate a system-defined ConversionTracker, but you can create a mutable copy of it + * in your account by sending a mutate request with an ADD operation specifying + * an originalConversionTypeId matching a system-defined conversion tracker's ID. That new + * ADDed ConversionTracker will inherit the statistics and properties + * of the system-defined type, but will be editable as usual.

+ * * @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. diff --git a/src/Google/Api/Ads/AdWords/v201502/MutateJobService.php b/src/Google/Api/Ads/AdWords/v201502/MutateJobService.php index 0a48591e0..a28064d9e 100755 --- a/src/Google/Api/Ads/AdWords/v201502/MutateJobService.php +++ b/src/Google/Api/Ads/AdWords/v201502/MutateJobService.php @@ -9488,9 +9488,14 @@ public function __construct($policyName = null, $violatingText = null) { * pulled from the Google base product feed specified in the parent campaign's * {@linkplain ShoppingSetting shopping setting}. * - *

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

+ *

Caution: Product ads do not use {@link #url url}, + * {@link #finalUrls finalUrls}, {@link #finalMobileUrls finalMobileUrls}, + * {@link #finalAppUrls finalAppUrls}, or {@link #displayUrl displayUrl}; + * setting these fields on a product ad will cause an error. + * {@link #urlCustomParameters urlCustomParameters} and + * {@link #trackingUrlTemplate trackingUrlTemplate} can be set, but it is not + * recommended, as they will not be used; they should be set at the ad group or + * campaign level instead.

* This is disabled for AdX when it is contained within Operators: ADD, SET. * @package Google_Api_Ads_AdWords_v201502 * @subpackage v201502 diff --git a/src/Google/Api/Ads/Common/Lib/build.ini b/src/Google/Api/Ads/Common/Lib/build.ini index d5597e1cb..a465b5e44 100755 --- a/src/Google/Api/Ads/Common/Lib/build.ini +++ b/src/Google/Api/Ads/Common/Lib/build.ini @@ -1,3 +1,3 @@ -LIB_VERSION = 5.9.0 +LIB_VERSION = 6.0.0 LIB_NAME = "Common-PHP" diff --git a/src/Google/Api/Ads/Dfp/Lib/api.properties b/src/Google/Api/Ads/Dfp/Lib/api.properties index 0f17560a5..3d5aaedc8 100755 --- a/src/Google/Api/Ads/Dfp/Lib/api.properties +++ b/src/Google/Api/Ads/Dfp/Lib/api.properties @@ -18,7 +18,7 @@ wsdl2php.skipClassNameCheckTypes= ;; API api.server=https://ads.google.com -api.versions=v201403,v201405,v201408,v201411,v201502 +api.versions=v201403,v201405,v201408,v201411,v201502,v201505 ;; v201403 api.versions.v201403.services=ActivityService,ActivityGroupService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,LiveStreamEventService,NetworkService,OrderService,PlacementService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,RateCardCustomizationService,RateCardCustomizationGroupService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService @@ -259,3 +259,54 @@ api.versions.v201502.services.UserService.wsdl=${api.server}/apis/ads/publisher/ api.versions.v201502.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201502/UserTeamAssociationService?wsdl api.versions.v201502.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201502/WorkflowRequestService?wsdl +;; v201505 +api.versions.v201505.services=ActivityService,ActivityGroupService,AdExclusionRuleService,AdRuleService,AudienceSegmentService,BaseRateService,CompanyService,ContactService,ContentService,ContentBundleService,ContentMetadataKeyHierarchyService,CreativeService,CreativeSetService,CreativeTemplateService,CreativeWrapperService,CustomFieldService,CustomTargetingService,ExchangeRateService,ForecastService,InventoryService,LabelService,LineItemService,LineItemCreativeAssociationService,LineItemTemplateService,LiveStreamEventService,NetworkService,OrderService,PackageService,PlacementService,PremiumRateService,ProductPackageItemService,ProductPackageService,ProductService,ProductTemplateService,ProposalService,ProposalLineItemService,PublisherQueryLanguageService,RateCardService,ReconciliationOrderReportService,ReconciliationReportService,ReconciliationReportRowService,ReportService,SharedAdUnitService,SuggestedAdUnitService,TeamService,UserService,UserTeamAssociationService,WorkflowRequestService +api.versions.v201505.services.ActivityService.wsdl=${api.server}/apis/ads/publisher/v201505/ActivityService?wsdl +api.versions.v201505.services.ActivityGroupService.wsdl=${api.server}/apis/ads/publisher/v201505/ActivityGroupService?wsdl +api.versions.v201505.services.AdExclusionRuleService.wsdl=${api.server}/apis/ads/publisher/v201505/AdExclusionRuleService?wsdl +api.versions.v201505.services.AdRuleService.wsdl=${api.server}/apis/ads/publisher/v201505/AdRuleService?wsdl +api.versions.v201505.services.AudienceSegmentService.wsdl=${api.server}/apis/ads/publisher/v201505/AudienceSegmentService?wsdl +api.versions.v201505.services.BaseRateService.wsdl=${api.server}/apis/ads/publisher/v201505/BaseRateService?wsdl +api.versions.v201505.services.CompanyService.wsdl=${api.server}/apis/ads/publisher/v201505/CompanyService?wsdl +api.versions.v201505.services.ContactService.wsdl=${api.server}/apis/ads/publisher/v201505/ContactService?wsdl +api.versions.v201505.services.ContentService.wsdl=${api.server}/apis/ads/publisher/v201505/ContentService?wsdl +api.versions.v201505.services.ContentBundleService.wsdl=${api.server}/apis/ads/publisher/v201505/ContentBundleService?wsdl +api.versions.v201505.services.ContentMetadataKeyHierarchyService.wsdl=${api.server}/apis/ads/publisher/v201505/ContentMetadataKeyHierarchyService?wsdl +api.versions.v201505.services.CreativeService.wsdl=${api.server}/apis/ads/publisher/v201505/CreativeService?wsdl +api.versions.v201505.services.CreativeSetService.wsdl=${api.server}/apis/ads/publisher/v201505/CreativeSetService?wsdl +api.versions.v201505.services.CreativeTemplateService.wsdl=${api.server}/apis/ads/publisher/v201505/CreativeTemplateService?wsdl +api.versions.v201505.services.CreativeWrapperService.wsdl=${api.server}/apis/ads/publisher/v201505/CreativeWrapperService?wsdl +api.versions.v201505.services.CustomFieldService.wsdl=${api.server}/apis/ads/publisher/v201505/CustomFieldService?wsdl +api.versions.v201505.services.CustomTargetingService.wsdl=${api.server}/apis/ads/publisher/v201505/CustomTargetingService?wsdl +api.versions.v201505.services.ExchangeRateService.wsdl=${api.server}/apis/ads/publisher/v201505/ExchangeRateService?wsdl +api.versions.v201505.services.ForecastService.wsdl=${api.server}/apis/ads/publisher/v201505/ForecastService?wsdl +api.versions.v201505.services.InventoryService.wsdl=${api.server}/apis/ads/publisher/v201505/InventoryService?wsdl +api.versions.v201505.services.LabelService.wsdl=${api.server}/apis/ads/publisher/v201505/LabelService?wsdl +api.versions.v201505.services.LineItemService.wsdl=${api.server}/apis/ads/publisher/v201505/LineItemService?wsdl +api.versions.v201505.services.LineItemCreativeAssociationService.wsdl=${api.server}/apis/ads/publisher/v201505/LineItemCreativeAssociationService?wsdl +api.versions.v201505.services.LineItemTemplateService.wsdl=${api.server}/apis/ads/publisher/v201505/LineItemTemplateService?wsdl +api.versions.v201505.services.LiveStreamEventService.wsdl=${api.server}/apis/ads/publisher/v201505/LiveStreamEventService?wsdl +api.versions.v201505.services.NetworkService.wsdl=${api.server}/apis/ads/publisher/v201505/NetworkService?wsdl +api.versions.v201505.services.OrderService.wsdl=${api.server}/apis/ads/publisher/v201505/OrderService?wsdl +api.versions.v201505.services.PackageService.wsdl=${api.server}/apis/ads/publisher/v201505/PackageService?wsdl +api.versions.v201505.services.PlacementService.wsdl=${api.server}/apis/ads/publisher/v201505/PlacementService?wsdl +api.versions.v201505.services.PremiumRateService.wsdl=${api.server}/apis/ads/publisher/v201505/PremiumRateService?wsdl +api.versions.v201505.services.ProductPackageItemService.wsdl=${api.server}/apis/ads/publisher/v201505/ProductPackageItemService?wsdl +api.versions.v201505.services.ProductPackageService.wsdl=${api.server}/apis/ads/publisher/v201505/ProductPackageService?wsdl +api.versions.v201505.services.ProductService.wsdl=${api.server}/apis/ads/publisher/v201505/ProductService?wsdl +api.versions.v201505.services.ProductTemplateService.wsdl=${api.server}/apis/ads/publisher/v201505/ProductTemplateService?wsdl +api.versions.v201505.services.ProposalService.wsdl=${api.server}/apis/ads/publisher/v201505/ProposalService?wsdl +api.versions.v201505.services.ProposalLineItemService.wsdl=${api.server}/apis/ads/publisher/v201505/ProposalLineItemService?wsdl +api.versions.v201505.services.PublisherQueryLanguageService.wsdl=${api.server}/apis/ads/publisher/v201505/PublisherQueryLanguageService?wsdl +api.versions.v201505.services.RateCardService.wsdl=${api.server}/apis/ads/publisher/v201505/RateCardService?wsdl +api.versions.v201505.services.ReconciliationOrderReportService.wsdl=${api.server}/apis/ads/publisher/v201505/ReconciliationOrderReportService?wsdl +api.versions.v201505.services.ReconciliationReportService.wsdl=${api.server}/apis/ads/publisher/v201505/ReconciliationReportService?wsdl +api.versions.v201505.services.ReconciliationReportRowService.wsdl=${api.server}/apis/ads/publisher/v201505/ReconciliationReportRowService?wsdl +api.versions.v201505.services.ReportService.wsdl=${api.server}/apis/ads/publisher/v201505/ReportService?wsdl +api.versions.v201505.services.SharedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201505/SharedAdUnitService?wsdl +api.versions.v201505.services.SuggestedAdUnitService.wsdl=${api.server}/apis/ads/publisher/v201505/SuggestedAdUnitService?wsdl +api.versions.v201505.services.TeamService.wsdl=${api.server}/apis/ads/publisher/v201505/TeamService?wsdl +api.versions.v201505.services.UserService.wsdl=${api.server}/apis/ads/publisher/v201505/UserService?wsdl +api.versions.v201505.services.UserTeamAssociationService.wsdl=${api.server}/apis/ads/publisher/v201505/UserTeamAssociationService?wsdl +api.versions.v201505.services.WorkflowRequestService.wsdl=${api.server}/apis/ads/publisher/v201505/WorkflowRequestService?wsdl + diff --git a/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php b/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php deleted file mode 100755 index 01dcbf584..000000000 --- a/src/Google/Api/Ads/Dfp/Util/ServiceUtils.php +++ /dev/null @@ -1,147 +0,0 @@ -$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) { - DeprecationUtils::LogDeprecatedMethodUsage('GetAllObjects', - 'https://github.com/googleads/googleads-php-lib/wiki/Migrating-off-of-DFP-ServiceUtils-functions'); - 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) { - DeprecationUtils::LogDeprecatedMethodUsage('GetSomeObjects', - 'https://github.com/googleads/googleads-php-lib/wiki/Migrating-off-of-DFP-ServiceUtils-functions'); - 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/Util/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201403/DateTimeUtils.php similarity index 100% rename from src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php rename to src/Google/Api/Ads/Dfp/Util/v201403/DateTimeUtils.php diff --git a/src/Google/Api/Ads/Dfp/Util/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201403/Pql.php similarity index 98% rename from src/Google/Api/Ads/Dfp/Util/Pql.php rename to src/Google/Api/Ads/Dfp/Util/v201403/Pql.php index 6dae57fff..0a939a17e 100755 --- a/src/Google/Api/Ads/Dfp/Util/Pql.php +++ b/src/Google/Api/Ads/Dfp/Util/v201403/Pql.php @@ -26,7 +26,7 @@ * Version 2.0 * @author Vincent Tsao */ -require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201403/DateTimeUtils.php'; /** * A utility class for handling PQL objects. diff --git a/src/Google/Api/Ads/Dfp/Util/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201403/ReportDownloader.php similarity index 100% rename from src/Google/Api/Ads/Dfp/Util/ReportDownloader.php rename to src/Google/Api/Ads/Dfp/Util/v201403/ReportDownloader.php diff --git a/src/Google/Api/Ads/Dfp/Util/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/v201403/ReportUtils.php similarity index 100% rename from src/Google/Api/Ads/Dfp/Util/ReportUtils.php rename to src/Google/Api/Ads/Dfp/Util/v201403/ReportUtils.php diff --git a/src/Google/Api/Ads/Dfp/Util/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201403/StatementBuilder.php similarity index 99% rename from src/Google/Api/Ads/Dfp/Util/StatementBuilder.php rename to src/Google/Api/Ads/Dfp/Util/v201403/StatementBuilder.php index fd8c729b4..e5e7c6f94 100755 --- a/src/Google/Api/Ads/Dfp/Util/StatementBuilder.php +++ b/src/Google/Api/Ads/Dfp/Util/v201403/StatementBuilder.php @@ -27,7 +27,7 @@ * @author Vincent Tsao */ require_once 'Google/Api/Ads/Common/Lib/ValidationException.php'; -require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; +require_once 'Google/Api/Ads/Dfp/Util/v201403/Pql.php'; /** * {@code StatementBuilder} allows for statements to be constructed in parts. diff --git a/src/Google/Api/Ads/Dfp/Util/v201405/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201405/DateTimeUtils.php new file mode 100755 index 000000000..6f8a520e5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201405/DateTimeUtils.php @@ -0,0 +1,185 @@ +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/v201405/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201405/Pql.php new file mode 100755 index 000000000..2eb57d689 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201405/Pql.php @@ -0,0 +1,175 @@ +values = $values; + return $setValue; + } else if (class_exists('TargetingValue', false) && + $value instanceof Targeting) { + return new TargetingValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + + /** + * Creates a String from the Value. + * + * @param Value $value the value to convert + * @return string the string representation of the value + * @throws InvalidArgumentException if value cannot be converted + */ + public static function ToString(Value $value) { + if ($value instanceof BooleanValue) { + return ($value->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 if ($value instanceof SetValue) { + $pqlValues = $value->values; + if (!isset($pqlValues)) { + return ''; + } else { + $valuesAsStrings = array(); + foreach ($pqlValues as $pqlValue) { + $valuesAsStrings[] = self::ToString($pqlValue); + } + return implode(',', $valuesAsStrings); + } + } 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/v201405/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201405/ReportDownloader.php new file mode 100755 index 000000000..aa01817e7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201405/ReportDownloader.php @@ -0,0 +1,142 @@ +reportService = $reportService; + $this->reportJobId = $reportJobId; + } + + /** + * Blocks and waits for a report to be ready. When a report's job status is + * received that is not 'PENDING' or 'IN_PROGRESS', the report is considered + * finished, and the method is returned with a {@code true} if the report was + * successful, or an {@code false} otherwise. + * + * @return bool {@code true} if the report was successful, {@code false} + * otherwise + */ + public function waitForReportReady() { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + while ($reportJobStatus === 'IN_PROGRESS') { + sleep(self::SLEEP_DURATION); + $reportJobStatus = $this->reportService->getReportJob( + $this->reportJobId)->reportJobStatus; + } + + return $reportJobStatus === 'COMPLETED'; + } + + /** + * Downloads a Gzip report from an URL. to file located at {@code fileName}. + * If the {@code filePath} is specified the report will be downloaded to the + * file at that path, otherwise it will be downloaded to memory and + * returned as a string. + * + * @param string $exportFormat the export format of the report + * @param string $filePath an optional file path to download the report to + * @return mixed report contents as a string if {@code filePath} isn't + * specified, otherwise the size of the downloaded report in bytes + * @throws InvalidArgumentException if the report download URL is invalid + */ + public function downloadReport($exportFormat, $filePath = null) { + $downloadUrl = $this->getDownloadUrl($exportFormat); + $curlUtils = new CurlUtils(); + $ch = $curlUtils->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; + } + } + + /** + * Gets the download URL for a GZip or plain-text format report. + * + * @param string $exportFormat the export format of the report + * @return string the URL for the report download + * @throws ValidationException if the report is not completed + */ + private function getDownloadUrl($exportFormat) { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + if ($reportJobStatus !== 'COMPLETED') { + throw new ValidationException('reportJobStatus', $reportJobStatus, + sprintf('Report %d must be completed before downloading.', + $this->reportJobId)); + } + return $this->reportService->getReportDownloadURL($this->reportJobId, + $exportFormat); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201405/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/v201405/ReportUtils.php new file mode 100755 index 000000000..759ec6390 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201405/ReportUtils.php @@ -0,0 +1,97 @@ +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/v201405/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201405/StatementBuilder.php new file mode 100755 index 000000000..8f27a88b0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201405/StatementBuilder.php @@ -0,0 +1,294 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $offset; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

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

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

+ * "LIMIT <count>" + *

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

+ * "OFFSET <count>" + *

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

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

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php new file mode 100755 index 000000000..6f8a520e5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201408/DateTimeUtils.php @@ -0,0 +1,185 @@ +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/v201408/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201408/Pql.php new file mode 100755 index 000000000..33203c501 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201408/Pql.php @@ -0,0 +1,175 @@ +values = $values; + return $setValue; + } else if (class_exists('TargetingValue', false) && + $value instanceof Targeting) { + return new TargetingValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + + /** + * Creates a String from the Value. + * + * @param Value $value the value to convert + * @return string the string representation of the value + * @throws InvalidArgumentException if value cannot be converted + */ + public static function ToString(Value $value) { + if ($value instanceof BooleanValue) { + return ($value->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 if ($value instanceof SetValue) { + $pqlValues = $value->values; + if (!isset($pqlValues)) { + return ''; + } else { + $valuesAsStrings = array(); + foreach ($pqlValues as $pqlValue) { + $valuesAsStrings[] = self::ToString($pqlValue); + } + return implode(',', $valuesAsStrings); + } + } 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/v201408/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php new file mode 100755 index 000000000..aa01817e7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201408/ReportDownloader.php @@ -0,0 +1,142 @@ +reportService = $reportService; + $this->reportJobId = $reportJobId; + } + + /** + * Blocks and waits for a report to be ready. When a report's job status is + * received that is not 'PENDING' or 'IN_PROGRESS', the report is considered + * finished, and the method is returned with a {@code true} if the report was + * successful, or an {@code false} otherwise. + * + * @return bool {@code true} if the report was successful, {@code false} + * otherwise + */ + public function waitForReportReady() { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + while ($reportJobStatus === 'IN_PROGRESS') { + sleep(self::SLEEP_DURATION); + $reportJobStatus = $this->reportService->getReportJob( + $this->reportJobId)->reportJobStatus; + } + + return $reportJobStatus === 'COMPLETED'; + } + + /** + * Downloads a Gzip report from an URL. to file located at {@code fileName}. + * If the {@code filePath} is specified the report will be downloaded to the + * file at that path, otherwise it will be downloaded to memory and + * returned as a string. + * + * @param string $exportFormat the export format of the report + * @param string $filePath an optional file path to download the report to + * @return mixed report contents as a string if {@code filePath} isn't + * specified, otherwise the size of the downloaded report in bytes + * @throws InvalidArgumentException if the report download URL is invalid + */ + public function downloadReport($exportFormat, $filePath = null) { + $downloadUrl = $this->getDownloadUrl($exportFormat); + $curlUtils = new CurlUtils(); + $ch = $curlUtils->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; + } + } + + /** + * Gets the download URL for a GZip or plain-text format report. + * + * @param string $exportFormat the export format of the report + * @return string the URL for the report download + * @throws ValidationException if the report is not completed + */ + private function getDownloadUrl($exportFormat) { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + if ($reportJobStatus !== 'COMPLETED') { + throw new ValidationException('reportJobStatus', $reportJobStatus, + sprintf('Report %d must be completed before downloading.', + $this->reportJobId)); + } + return $this->reportService->getReportDownloadURL($this->reportJobId, + $exportFormat); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201408/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/v201408/ReportUtils.php new file mode 100755 index 000000000..759ec6390 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201408/ReportUtils.php @@ -0,0 +1,97 @@ +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/v201408/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php new file mode 100755 index 000000000..7e9668eb3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201408/StatementBuilder.php @@ -0,0 +1,294 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $offset; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

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

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

+ * "LIMIT <count>" + *

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

+ * "OFFSET <count>" + *

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

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

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php new file mode 100755 index 000000000..6f8a520e5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201411/DateTimeUtils.php @@ -0,0 +1,185 @@ +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/v201411/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201411/Pql.php new file mode 100755 index 000000000..0c2be858f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201411/Pql.php @@ -0,0 +1,175 @@ +values = $values; + return $setValue; + } else if (class_exists('TargetingValue', false) && + $value instanceof Targeting) { + return new TargetingValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + + /** + * Creates a String from the Value. + * + * @param Value $value the value to convert + * @return string the string representation of the value + * @throws InvalidArgumentException if value cannot be converted + */ + public static function ToString(Value $value) { + if ($value instanceof BooleanValue) { + return ($value->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 if ($value instanceof SetValue) { + $pqlValues = $value->values; + if (!isset($pqlValues)) { + return ''; + } else { + $valuesAsStrings = array(); + foreach ($pqlValues as $pqlValue) { + $valuesAsStrings[] = self::ToString($pqlValue); + } + return implode(',', $valuesAsStrings); + } + } 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/v201411/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php new file mode 100755 index 000000000..aa01817e7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201411/ReportDownloader.php @@ -0,0 +1,142 @@ +reportService = $reportService; + $this->reportJobId = $reportJobId; + } + + /** + * Blocks and waits for a report to be ready. When a report's job status is + * received that is not 'PENDING' or 'IN_PROGRESS', the report is considered + * finished, and the method is returned with a {@code true} if the report was + * successful, or an {@code false} otherwise. + * + * @return bool {@code true} if the report was successful, {@code false} + * otherwise + */ + public function waitForReportReady() { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + while ($reportJobStatus === 'IN_PROGRESS') { + sleep(self::SLEEP_DURATION); + $reportJobStatus = $this->reportService->getReportJob( + $this->reportJobId)->reportJobStatus; + } + + return $reportJobStatus === 'COMPLETED'; + } + + /** + * Downloads a Gzip report from an URL. to file located at {@code fileName}. + * If the {@code filePath} is specified the report will be downloaded to the + * file at that path, otherwise it will be downloaded to memory and + * returned as a string. + * + * @param string $exportFormat the export format of the report + * @param string $filePath an optional file path to download the report to + * @return mixed report contents as a string if {@code filePath} isn't + * specified, otherwise the size of the downloaded report in bytes + * @throws InvalidArgumentException if the report download URL is invalid + */ + public function downloadReport($exportFormat, $filePath = null) { + $downloadUrl = $this->getDownloadUrl($exportFormat); + $curlUtils = new CurlUtils(); + $ch = $curlUtils->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; + } + } + + /** + * Gets the download URL for a GZip or plain-text format report. + * + * @param string $exportFormat the export format of the report + * @return string the URL for the report download + * @throws ValidationException if the report is not completed + */ + private function getDownloadUrl($exportFormat) { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + if ($reportJobStatus !== 'COMPLETED') { + throw new ValidationException('reportJobStatus', $reportJobStatus, + sprintf('Report %d must be completed before downloading.', + $this->reportJobId)); + } + return $this->reportService->getReportDownloadURL($this->reportJobId, + $exportFormat); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201411/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/v201411/ReportUtils.php new file mode 100755 index 000000000..759ec6390 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201411/ReportUtils.php @@ -0,0 +1,97 @@ +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/v201411/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php new file mode 100755 index 000000000..eaf66a8d8 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201411/StatementBuilder.php @@ -0,0 +1,294 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $offset; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

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

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

+ * "LIMIT <count>" + *

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

+ * "OFFSET <count>" + *

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

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

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php new file mode 100755 index 000000000..6f8a520e5 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201502/DateTimeUtils.php @@ -0,0 +1,185 @@ +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/v201502/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201502/Pql.php new file mode 100755 index 000000000..145044ef2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201502/Pql.php @@ -0,0 +1,175 @@ +values = $values; + return $setValue; + } else if (class_exists('TargetingValue', false) && + $value instanceof Targeting) { + return new TargetingValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + + /** + * Creates a String from the Value. + * + * @param Value $value the value to convert + * @return string the string representation of the value + * @throws InvalidArgumentException if value cannot be converted + */ + public static function ToString(Value $value) { + if ($value instanceof BooleanValue) { + return ($value->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 if ($value instanceof SetValue) { + $pqlValues = $value->values; + if (!isset($pqlValues)) { + return ''; + } else { + $valuesAsStrings = array(); + foreach ($pqlValues as $pqlValue) { + $valuesAsStrings[] = self::ToString($pqlValue); + } + return implode(',', $valuesAsStrings); + } + } 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/v201502/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php new file mode 100755 index 000000000..aa01817e7 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201502/ReportDownloader.php @@ -0,0 +1,142 @@ +reportService = $reportService; + $this->reportJobId = $reportJobId; + } + + /** + * Blocks and waits for a report to be ready. When a report's job status is + * received that is not 'PENDING' or 'IN_PROGRESS', the report is considered + * finished, and the method is returned with a {@code true} if the report was + * successful, or an {@code false} otherwise. + * + * @return bool {@code true} if the report was successful, {@code false} + * otherwise + */ + public function waitForReportReady() { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + while ($reportJobStatus === 'IN_PROGRESS') { + sleep(self::SLEEP_DURATION); + $reportJobStatus = $this->reportService->getReportJob( + $this->reportJobId)->reportJobStatus; + } + + return $reportJobStatus === 'COMPLETED'; + } + + /** + * Downloads a Gzip report from an URL. to file located at {@code fileName}. + * If the {@code filePath} is specified the report will be downloaded to the + * file at that path, otherwise it will be downloaded to memory and + * returned as a string. + * + * @param string $exportFormat the export format of the report + * @param string $filePath an optional file path to download the report to + * @return mixed report contents as a string if {@code filePath} isn't + * specified, otherwise the size of the downloaded report in bytes + * @throws InvalidArgumentException if the report download URL is invalid + */ + public function downloadReport($exportFormat, $filePath = null) { + $downloadUrl = $this->getDownloadUrl($exportFormat); + $curlUtils = new CurlUtils(); + $ch = $curlUtils->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; + } + } + + /** + * Gets the download URL for a GZip or plain-text format report. + * + * @param string $exportFormat the export format of the report + * @return string the URL for the report download + * @throws ValidationException if the report is not completed + */ + private function getDownloadUrl($exportFormat) { + $reportJobStatus = + $this->reportService->getReportJob($this->reportJobId)->reportJobStatus; + if ($reportJobStatus !== 'COMPLETED') { + throw new ValidationException('reportJobStatus', $reportJobStatus, + sprintf('Report %d must be completed before downloading.', + $this->reportJobId)); + } + return $this->reportService->getReportDownloadURL($this->reportJobId, + $exportFormat); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201502/ReportUtils.php b/src/Google/Api/Ads/Dfp/Util/v201502/ReportUtils.php new file mode 100755 index 000000000..759ec6390 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201502/ReportUtils.php @@ -0,0 +1,97 @@ +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/v201502/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php new file mode 100755 index 000000000..127bbc295 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php @@ -0,0 +1,294 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $offset; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

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

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

+ * "LIMIT <count>" + *

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

+ * "OFFSET <count>" + *

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

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

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201505/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/v201505/DateTimeUtils.php new file mode 100755 index 000000000..f898d7f04 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201505/DateTimeUtils.php @@ -0,0 +1,162 @@ +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/v201505/Pql.php b/src/Google/Api/Ads/Dfp/Util/v201505/Pql.php new file mode 100755 index 000000000..79ea6ffb4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201505/Pql.php @@ -0,0 +1,175 @@ +values = $values; + return $setValue; + } else if (class_exists('TargetingValue', false) && + $value instanceof Targeting) { + return new TargetingValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + + /** + * Creates a String from the Value. + * + * @param Value $value the value to convert + * @return string the string representation of the value + * @throws InvalidArgumentException if value cannot be converted + */ + public static function ToString(Value $value) { + if ($value instanceof BooleanValue) { + return ($value->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 if ($value instanceof SetValue) { + $pqlValues = $value->values; + if (!isset($pqlValues)) { + return ''; + } else { + $valuesAsStrings = array(); + foreach ($pqlValues as $pqlValue) { + $valuesAsStrings[] = self::ToString($pqlValue); + } + return implode(',', $valuesAsStrings); + } + } 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/v201505/ReportDownloader.php b/src/Google/Api/Ads/Dfp/Util/v201505/ReportDownloader.php new file mode 100755 index 000000000..647890ba6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201505/ReportDownloader.php @@ -0,0 +1,142 @@ +reportService = $reportService; + $this->reportJobId = $reportJobId; + } + + /** + * Blocks and waits for a report to be ready. When a report's job status is + * received that is not 'PENDING' or 'IN_PROGRESS', the report is considered + * finished, and the method is returned with a {@code true} if the report was + * successful, or an {@code false} otherwise. + * + * @return bool {@code true} if the report was successful, {@code false} + * otherwise + */ + public function waitForReportReady() { + $reportJobStatus = + $this->reportService->getReportJobStatus($this->reportJobId); + while ($reportJobStatus === 'IN_PROGRESS') { + sleep(self::SLEEP_DURATION); + $reportJobStatus = + $this->reportService->getReportJobStatus($this->reportJobId); + } + + return $reportJobStatus === 'COMPLETED'; + } + + /** + * Downloads a Gzip report from an URL. to file located at {@code fileName}. + * If the {@code filePath} is specified the report will be downloaded to the + * file at that path, otherwise it will be downloaded to memory and + * returned as a string. + * + * @param string $exportFormat the export format of the report + * @param string $filePath an optional file path to download the report to + * @return mixed report contents as a string if {@code filePath} isn't + * specified, otherwise the size of the downloaded report in bytes + * @throws InvalidArgumentException if the report download URL is invalid + */ + public function downloadReport($exportFormat, $filePath = null) { + $downloadUrl = $this->getDownloadUrl($exportFormat); + $curlUtils = new CurlUtils(); + $ch = $curlUtils->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; + } + } + + /** + * Gets the download URL for a GZip or plain-text format report. + * + * @param string $exportFormat the export format of the report + * @return string the URL for the report download + * @throws ValidationException if the report is not completed + */ + private function getDownloadUrl($exportFormat) { + $reportJobStatus = + $this->reportService->getReportJobStatus($this->reportJobId); + if ($reportJobStatus !== 'COMPLETED') { + throw new ValidationException('reportJobStatus', $reportJobStatus, + sprintf('Report %d must be completed before downloading.', + $this->reportJobId)); + } + return $this->reportService->getReportDownloadURL($this->reportJobId, + $exportFormat); + } +} + diff --git a/src/Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php new file mode 100755 index 000000000..2b3cd467c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/v201505/StatementBuilder.php @@ -0,0 +1,294 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $offset; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

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

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

+ * "LIMIT <count>" + *

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

+ * "OFFSET <count>" + *

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

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

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/settings.ini b/src/Google/Api/Ads/Dfp/settings.ini index f998a9e1c..6d170f43b 100755 --- a/src/Google/Api/Ads/Dfp/settings.ini +++ b/src/Google/Api/Ads/Dfp/settings.ini @@ -5,7 +5,7 @@ ; LIB_LOG_DIR_PATH = "path/to/logs" [SERVER] -DEFAULT_VERSION = "v201502" +DEFAULT_VERSION = "v201505" DEFAULT_SERVER = "https://ads.google.com" [SOAP] diff --git a/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php index 5fcb6e544..68dcf9185 100755 --- a/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201403/AudienceSegmentService.php @@ -796,6 +796,45 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +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 v201403 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -4201,6 +4240,7 @@ class AudienceSegmentService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityLimitReachedError" => "EntityLimitReachedError", "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", diff --git a/src/Google/Api/Ads/Dfp/v201403/ContentService.php b/src/Google/Api/Ads/Dfp/v201403/ContentService.php index ea6319802..e09c0f1bb 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ContentService.php @@ -2492,7 +2492,7 @@ public function __construct() { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2601,7 +2601,7 @@ public function __construct($rval = null) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * @@ -3111,7 +3111,7 @@ public function __construct($wsdl, $options, $user) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -3148,7 +3148,7 @@ public function getContentByStatement($statement) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * diff --git a/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php index 0223d8f39..4440f2503 100755 --- a/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201403/CreativeTemplateService.php @@ -3432,9 +3432,9 @@ public function __construct($value = null, $ValueType = null) { * 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}. + * + *

Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating a {@link TemplateCreative} from a {@link CreativeTemplate}. * @package GoogleApiAdsDfp * @subpackage v201403 */ diff --git a/src/Google/Api/Ads/Dfp/v201403/ProductService.php b/src/Google/Api/Ads/Dfp/v201403/ProductService.php index 604c066b3..dfc31e256 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProductService.php @@ -4924,7 +4924,7 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti if (!class_exists("ArchiveProducts", false)) { /** - * The action used to archive products. + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. * @package GoogleApiAdsDfp * @subpackage v201403 */ diff --git a/src/Google/Api/Ads/Dfp/v201403/ProposalService.php b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php index d8be50e60..689bc6ca2 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ProposalService.php @@ -923,6 +923,51 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n } } +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3646,6 +3691,39 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201403 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201403"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -5483,6 +5561,7 @@ class ProposalService extends DfpSoapClient { "DateValue" => "DateValue", "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5541,6 +5620,7 @@ class ProposalService extends DfpSoapClient { "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201403/ReportService.php b/src/Google/Api/Ads/Dfp/v201403/ReportService.php index 9412d3946..919eb4a12 100755 --- a/src/Google/Api/Ads/Dfp/v201403/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201403/ReportService.php @@ -2712,6 +2712,8 @@ public function __construct($rval = null) { * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. @@ -3314,6 +3316,8 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. diff --git a/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php index cf49bfd15..14ec3b63f 100755 --- a/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201405/AudienceSegmentService.php @@ -724,6 +724,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("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 v201405 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2219,6 +2303,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { /** * Approval status values for {@link ThirdPartyAudienceSegment} objects. @@ -4077,6 +4194,8 @@ class AudienceSegmentService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", @@ -4117,6 +4236,7 @@ class AudienceSegmentService extends DfpSoapClient { "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ContentService.php b/src/Google/Api/Ads/Dfp/v201405/ContentService.php index d20b41db9..aac0de173 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ContentService.php @@ -2376,7 +2376,7 @@ public function __construct() { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2485,7 +2485,7 @@ public function __construct($rval = null) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * @@ -2993,7 +2993,7 @@ public function __construct($wsdl, $options, $user) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -3030,7 +3030,7 @@ public function getContentByStatement($statement) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * diff --git a/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php index 63c5f14fd..411f421f6 100755 --- a/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201405/CreativeTemplateService.php @@ -3309,9 +3309,9 @@ public function __construct($value = null, $ValueType = null) { * 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}. + * + *

Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating a {@link TemplateCreative} from a {@link CreativeTemplate}. * @package GoogleApiAdsDfp * @subpackage v201405 */ diff --git a/src/Google/Api/Ads/Dfp/v201405/ProductService.php b/src/Google/Api/Ads/Dfp/v201405/ProductService.php index 79713752a..d0bee6cfb 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProductService.php @@ -5161,7 +5161,7 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti if (!class_exists("ArchiveProducts", false)) { /** - * The action used to archive products. + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. * @package GoogleApiAdsDfp * @subpackage v201405 */ diff --git a/src/Google/Api/Ads/Dfp/v201405/ProposalService.php b/src/Google/Api/Ads/Dfp/v201405/ProposalService.php index d9b61bd63..4d588d98f 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ProposalService.php @@ -942,6 +942,51 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n } } +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3680,6 +3725,39 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201405 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201405"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -5518,6 +5596,7 @@ class ProposalService extends DfpSoapClient { "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5577,6 +5656,7 @@ class ProposalService extends DfpSoapClient { "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201405/ReportService.php b/src/Google/Api/Ads/Dfp/v201405/ReportService.php index 8baa10f69..eca6513e0 100755 --- a/src/Google/Api/Ads/Dfp/v201405/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201405/ReportService.php @@ -2589,6 +2589,8 @@ public function __construct($rval = null) { * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. @@ -3189,6 +3191,8 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. diff --git a/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php index 3ea67c8da..569ea839c 100755 --- a/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201408/AudienceSegmentService.php @@ -724,6 +724,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("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 v201408 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2227,6 +2311,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { /** * Approval status values for {@link ThirdPartyAudienceSegment} objects. @@ -4087,6 +4204,8 @@ class AudienceSegmentService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", @@ -4127,6 +4246,7 @@ class AudienceSegmentService extends DfpSoapClient { "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ContentService.php b/src/Google/Api/Ads/Dfp/v201408/ContentService.php index 6f106864f..44cb62d38 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ContentService.php @@ -2376,7 +2376,7 @@ public function __construct() { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2485,7 +2485,7 @@ public function __construct($rval = null) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * @@ -2993,7 +2993,7 @@ public function __construct($wsdl, $options, $user) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -3030,7 +3030,7 @@ public function getContentByStatement($statement) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * diff --git a/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php index 19fc123af..96fdfb7b5 100755 --- a/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201408/CreativeTemplateService.php @@ -3316,9 +3316,9 @@ public function __construct($value = null, $ValueType = null) { * 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}. + * + *

Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating a {@link TemplateCreative} from a {@link CreativeTemplate}. * @package GoogleApiAdsDfp * @subpackage v201408 */ diff --git a/src/Google/Api/Ads/Dfp/v201408/ProductService.php b/src/Google/Api/Ads/Dfp/v201408/ProductService.php index 9a050b801..ad4f4769b 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProductService.php @@ -5161,7 +5161,7 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti if (!class_exists("ArchiveProducts", false)) { /** - * The action used to archive products. + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. * @package GoogleApiAdsDfp * @subpackage v201408 */ diff --git a/src/Google/Api/Ads/Dfp/v201408/ProposalService.php b/src/Google/Api/Ads/Dfp/v201408/ProposalService.php index f4ae16913..4599193d2 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ProposalService.php @@ -942,6 +942,51 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n } } +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3720,6 +3765,39 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201408 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201408"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -5558,6 +5636,7 @@ class ProposalService extends DfpSoapClient { "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5618,6 +5697,7 @@ class ProposalService extends DfpSoapClient { "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201408/ReportService.php b/src/Google/Api/Ads/Dfp/v201408/ReportService.php index 34ca68185..aa9564f32 100755 --- a/src/Google/Api/Ads/Dfp/v201408/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201408/ReportService.php @@ -2589,6 +2589,8 @@ public function __construct($rval = null) { * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. @@ -3189,6 +3191,8 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. diff --git a/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php b/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php index 0422601b1..10bbdb5bb 100755 --- a/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201411/AdExclusionRuleService.php @@ -804,6 +804,90 @@ public function __construct($AdExclusionRuleActionType = null) { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("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 v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1974,6 +2058,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3202,6 +3319,8 @@ class AdExclusionRuleService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAdExclusionRules" => "DeactivateAdExclusionRules", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "InventoryTargeting" => "InventoryTargeting", @@ -3231,6 +3350,7 @@ class AdExclusionRuleService extends DfpSoapClient { "AuthenticationError.Reason" => "AuthenticationErrorReason", "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php index 7bff032a5..0673a6d64 100755 --- a/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201411/AudienceSegmentService.php @@ -724,6 +724,90 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("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 v201411 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -2227,6 +2311,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { /** * Approval status values for {@link ThirdPartyAudienceSegment} objects. @@ -4130,6 +4247,8 @@ class AudienceSegmentService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", @@ -4170,6 +4289,7 @@ class AudienceSegmentService extends DfpSoapClient { "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ContentService.php b/src/Google/Api/Ads/Dfp/v201411/ContentService.php index a17b3c93a..a4d9198f9 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ContentService.php @@ -2376,7 +2376,7 @@ public function __construct() { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2485,7 +2485,7 @@ public function __construct($rval = null) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * @@ -3036,7 +3036,7 @@ public function __construct($wsdl, $options, $user) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -3073,7 +3073,7 @@ public function getContentByStatement($statement) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * diff --git a/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php index 59cd05ce2..5f2ef4377 100755 --- a/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201411/CreativeTemplateService.php @@ -3358,9 +3358,9 @@ public function __construct($value = null, $ValueType = null) { * 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}. + * + *

Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating a {@link TemplateCreative} from a {@link CreativeTemplate}. * @package GoogleApiAdsDfp * @subpackage v201411 */ diff --git a/src/Google/Api/Ads/Dfp/v201411/ProductService.php b/src/Google/Api/Ads/Dfp/v201411/ProductService.php index 16ae92784..0940a540d 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProductService.php @@ -5611,7 +5611,7 @@ public function __construct($errors = null, $message = null, $ApplicationExcepti if (!class_exists("ArchiveProducts", false)) { /** - * The action used to archive products. + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. * @package GoogleApiAdsDfp * @subpackage v201411 */ diff --git a/src/Google/Api/Ads/Dfp/v201411/ProposalService.php b/src/Google/Api/Ads/Dfp/v201411/ProposalService.php index c226ac5c9..8708eed98 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ProposalService.php @@ -942,6 +942,51 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n } } +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3720,6 +3765,39 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201411 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201411"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -5601,6 +5679,7 @@ class ProposalService extends DfpSoapClient { "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5661,6 +5740,7 @@ class ProposalService extends DfpSoapClient { "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201411/ReportService.php b/src/Google/Api/Ads/Dfp/v201411/ReportService.php index 0fd7fc686..46585a5bb 100755 --- a/src/Google/Api/Ads/Dfp/v201411/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201411/ReportService.php @@ -2589,6 +2589,8 @@ public function __construct($rval = null) { * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. @@ -3232,6 +3234,8 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. diff --git a/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php b/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php index aae66fa74..0ed8868b7 100755 --- a/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php +++ b/src/Google/Api/Ads/Dfp/v201502/AdExclusionRuleService.php @@ -682,6 +682,88 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1800,6 +1882,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -3018,6 +3133,8 @@ class AdExclusionRuleService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAdExclusionRules" => "DeactivateAdExclusionRules", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", "InventoryTargeting" => "InventoryTargeting", @@ -3047,6 +3164,7 @@ class AdExclusionRuleService extends DfpSoapClient { "AuthenticationError.Reason" => "AuthenticationErrorReason", "CollectionSizeError.Reason" => "CollectionSizeErrorReason", "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", "NotNullError.Reason" => "NotNullErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php index abb756479..fdd60f8d9 100755 --- a/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php +++ b/src/Google/Api/Ads/Dfp/v201502/AudienceSegmentService.php @@ -603,6 +603,88 @@ public function __construct($date = null, $hour = null, $minute = null, $second } } +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201502 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -1976,6 +2058,39 @@ public function __construct() { } } +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { /** * Approval status values for {@link ThirdPartyAudienceSegment} objects. @@ -3902,6 +4017,8 @@ class AudienceSegmentService extends DfpSoapClient { "DateTimeValue" => "DateTimeValue", "DateValue" => "DateValue", "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", "FeatureError" => "FeatureError", "InternalApiError" => "InternalApiError", @@ -3942,6 +4059,7 @@ class AudienceSegmentService extends DfpSoapClient { "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", "ThirdPartyAudienceSegment.LicenseType" => "ThirdPartyAudienceSegmentLicenseType", "FeatureError.Reason" => "FeatureErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201502/ContentService.php b/src/Google/Api/Ads/Dfp/v201502/ContentService.php index 0fd9156c7..c2d490dd9 100755 --- a/src/Google/Api/Ads/Dfp/v201502/ContentService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ContentService.php @@ -2240,7 +2240,7 @@ public function __construct() { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2349,7 +2349,7 @@ public function __construct($rval = null) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * @@ -2892,7 +2892,7 @@ public function __construct($wsdl, $options, $user) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime} * * * @@ -2929,7 +2929,7 @@ public function getContentByStatement($statement) { * * * {@code lastModifiedDateTime} - * {@link Content#lastModifiedDateTime>}: Requires indexed content search to be enabled. + * {@link Content#lastModifiedDateTime>} * * * diff --git a/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php index d91b2d7e1..d21276690 100755 --- a/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/CreativeTemplateService.php @@ -3168,9 +3168,9 @@ public function __construct($value = null) { * 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}. + * + *

Use {@link StringCreativeTemplateVariableValue} to specify the value + * for this variable when creating a {@link TemplateCreative} from a {@link CreativeTemplate}. * @package GoogleApiAdsDfp * @subpackage v201502 */ diff --git a/src/Google/Api/Ads/Dfp/v201502/ForecastService.php b/src/Google/Api/Ads/Dfp/v201502/ForecastService.php index de00aad0d..db9d52906 100755 --- a/src/Google/Api/Ads/Dfp/v201502/ForecastService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ForecastService.php @@ -5929,6 +5929,50 @@ public function __construct($hour = null, $minute = null) { } } +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("TypeError", false)) { /** * An error for a field which is an invalid type. @@ -9219,6 +9263,39 @@ public function __construct() { } } +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("UnitType", false)) { /** * Indicates the type of unit used for defining a reservation. The @@ -11057,6 +11134,7 @@ class ForecastService extends DfpSoapClient { "TechnologyTargetingError" => "TechnologyTargetingError", "TextValue" => "TextValue", "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", "TypeError" => "TypeError", "UniqueError" => "UniqueError", "UserDomainTargeting" => "UserDomainTargeting", @@ -11153,6 +11231,7 @@ class ForecastService extends DfpSoapClient { "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "UnitType" => "UnitType", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "VideoBumperType" => "VideoBumperType", diff --git a/src/Google/Api/Ads/Dfp/v201502/LineItemService.php b/src/Google/Api/Ads/Dfp/v201502/LineItemService.php index 5ccb7c80b..2484a406e 100755 --- a/src/Google/Api/Ads/Dfp/v201502/LineItemService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LineItemService.php @@ -5634,6 +5634,50 @@ public function __construct($hour = null, $minute = null) { } } +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("TypeError", false)) { /** * An error for a field which is an invalid type. @@ -8731,6 +8775,39 @@ public function __construct() { } } +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("UnitType", false)) { /** * Indicates the type of unit used for defining a reservation. The @@ -10640,6 +10717,7 @@ class LineItemService extends DfpSoapClient { "TechnologyTargetingError" => "TechnologyTargetingError", "TextValue" => "TextValue", "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", "TypeError" => "TypeError", "UnarchiveLineItems" => "UnarchiveLineItems", "UniqueError" => "UniqueError", @@ -10730,6 +10808,7 @@ class LineItemService extends DfpSoapClient { "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "UnitType" => "UnitType", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "VideoBumperType" => "VideoBumperType", diff --git a/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php index d23c1c168..59bcc552e 100755 --- a/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php +++ b/src/Google/Api/Ads/Dfp/v201502/LineItemTemplateService.php @@ -3026,6 +3026,50 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("TypeError", false)) { /** * An error for a field which is an invalid type. @@ -5109,6 +5153,39 @@ public function __construct() { } } +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("UserDomainTargetingErrorReason", false)) { /** * {@link ApiErrorReason} enum for user domain targeting error. @@ -5663,6 +5740,7 @@ class LineItemTemplateService extends DfpSoapClient { "TeamError" => "TeamError", "TechnologyTargetingError" => "TechnologyTargetingError", "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", "TypeError" => "TypeError", "UniqueError" => "UniqueError", "UserDomainTargetingError" => "UserDomainTargetingError", @@ -5725,6 +5803,7 @@ class LineItemTemplateService extends DfpSoapClient { "TargetPlatform" => "TargetPlatform", "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "getLineItemTemplatesByStatement" => "GetLineItemTemplatesByStatement", "getLineItemTemplatesByStatementResponse" => "GetLineItemTemplatesByStatementResponse", diff --git a/src/Google/Api/Ads/Dfp/v201502/OrderService.php b/src/Google/Api/Ads/Dfp/v201502/OrderService.php index dc770c91c..602e3f24a 100755 --- a/src/Google/Api/Ads/Dfp/v201502/OrderService.php +++ b/src/Google/Api/Ads/Dfp/v201502/OrderService.php @@ -3867,6 +3867,50 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("TypeError", false)) { /** * An error for a field which is an invalid type. @@ -6087,6 +6131,39 @@ public function __construct() { } } +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("UserDomainTargetingErrorReason", false)) { /** * {@link ApiErrorReason} enum for user domain targeting error. @@ -7250,6 +7327,7 @@ class OrderService extends DfpSoapClient { "TechnologyTargetingError" => "TechnologyTargetingError", "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", "TypeError" => "TypeError", "UnarchiveOrders" => "UnarchiveOrders", "UniqueError" => "UniqueError", @@ -7316,6 +7394,7 @@ class OrderService extends DfpSoapClient { "TeamError.Reason" => "TeamErrorReason", "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", "createOrders" => "CreateOrders", "createOrdersResponse" => "CreateOrdersResponse", diff --git a/src/Google/Api/Ads/Dfp/v201502/PackageService.php b/src/Google/Api/Ads/Dfp/v201502/PackageService.php index b95e3aefe..4dd10e65a 100755 --- a/src/Google/Api/Ads/Dfp/v201502/PackageService.php +++ b/src/Google/Api/Ads/Dfp/v201502/PackageService.php @@ -3800,7 +3800,7 @@ public function __construct() { *

  • {@link Package#name}
  • * * - * @param packageDtos the packages to create + * @param packages the packages to create * @return the created packages with their IDs filled in * @package GoogleApiAdsDfp * @subpackage v201502 @@ -3814,7 +3814,7 @@ class CreatePackages { * @access public * @var Package[] */ - public $packageDtos; + public $packages; /** * Gets the namesapce of this class @@ -3832,8 +3832,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($packageDtos = null) { - $this->packageDtos = $packageDtos; + public function __construct($packages = null) { + $this->packages = $packages; } } @@ -4090,7 +4090,7 @@ public function __construct($rval = null) { /** * Updates the specified {@link Package} objects. * - * @param packageDtos the packages to update + * @param packages the packages to update * @return the updated packages * @package GoogleApiAdsDfp * @subpackage v201502 @@ -4104,7 +4104,7 @@ class UpdatePackages { * @access public * @var Package[] */ - public $packageDtos; + public $packages; /** * Gets the namesapce of this class @@ -4122,8 +4122,8 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($packageDtos = null) { - $this->packageDtos = $packageDtos; + public function __construct($packages = null) { + $this->packages = $packages; } } @@ -4688,11 +4688,11 @@ public function __construct($wsdl, $options, $user) { *
  • {@link Package#name}
  • * * - * @param packageDtos the packages to create + * @param packages the packages to create * @return the created packages with their IDs filled in */ - public function createPackages($packageDtos) { - $args = new CreatePackages($packageDtos); + public function createPackages($packages) { + $args = new CreatePackages($packages); $result = $this->__soapCall("createPackages", array($args)); return $result->rval; } @@ -4755,11 +4755,11 @@ public function performPackageAction($packageAction, $filterStatement) { /** * Updates the specified {@link Package} objects. * - * @param packageDtos the packages to update + * @param packages the packages to update * @return the updated packages */ - public function updatePackages($packageDtos) { - $args = new UpdatePackages($packageDtos); + public function updatePackages($packages) { + $args = new UpdatePackages($packages); $result = $this->__soapCall("updatePackages", array($args)); return $result->rval; } diff --git a/src/Google/Api/Ads/Dfp/v201502/ProductService.php b/src/Google/Api/Ads/Dfp/v201502/ProductService.php index c333d321f..f43431efa 100755 --- a/src/Google/Api/Ads/Dfp/v201502/ProductService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProductService.php @@ -5269,7 +5269,7 @@ public function __construct($errors = null, $message = null) { if (!class_exists("ArchiveProducts", false)) { /** - * The action used to archive products. + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. * @package GoogleApiAdsDfp * @subpackage v201502 */ diff --git a/src/Google/Api/Ads/Dfp/v201502/ProposalService.php b/src/Google/Api/Ads/Dfp/v201502/ProposalService.php index 9f0f61e91..714427221 100755 --- a/src/Google/Api/Ads/Dfp/v201502/ProposalService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ProposalService.php @@ -814,6 +814,50 @@ public function __construct($fieldPath = null, $trigger = null, $errorString = n } } +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + if (!class_exists("FeatureError", false)) { /** * Errors related to feature management. If you attempt using a feature that is not available to @@ -3668,6 +3712,39 @@ public function __construct() { } } +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201502 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201502"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + if (!class_exists("FeatureErrorReason", false)) { /** * A feature is being used that is not enabled on the current network. @@ -5573,6 +5650,7 @@ class ProposalService extends DfpSoapClient { "DropDownCustomFieldValue" => "DropDownCustomFieldValue", "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", "FeatureError" => "FeatureError", "ForecastError" => "ForecastError", "InternalApiError" => "InternalApiError", @@ -5636,6 +5714,7 @@ class ProposalService extends DfpSoapClient { "CommonError.Reason" => "CommonErrorReason", "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", "FeatureError.Reason" => "FeatureErrorReason", "ForecastError.Reason" => "ForecastErrorReason", "InternalApiError.Reason" => "InternalApiErrorReason", diff --git a/src/Google/Api/Ads/Dfp/v201502/ReportService.php b/src/Google/Api/Ads/Dfp/v201502/ReportService.php index 0fae47e65..25ca94b52 100755 --- a/src/Google/Api/Ads/Dfp/v201502/ReportService.php +++ b/src/Google/Api/Ads/Dfp/v201502/ReportService.php @@ -2456,6 +2456,8 @@ public function __construct($rval = null) { * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

    Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. @@ -3091,6 +3093,8 @@ public function getReportDownloadUrlWithOptions($reportJobId, $reportDownloadOpt * Returns the {@link ReportJob} uniquely identified by the given ID with only the * {@link ReportJob#reportJobStatus} and {@link ReportJob#id} fields filled in. * + *

    Replaced with {@code ReportService.getReportJobStatus} beginning in V201505. + * * @param reportJobId the Id of the report job which must already exist * @return the {@code ReportJob} uniquely identified by the given ID with the ID and status * fields filled in. diff --git a/src/Google/Api/Ads/Dfp/v201505/ActivityGroupService.php b/src/Google/Api/Ads/Dfp/v201505/ActivityGroupService.php new file mode 100755 index 000000000..0cc956d5c --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ActivityGroupService.php @@ -0,0 +1,2794 @@ +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 v201505 + */ + class ActivityGroupPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ActivityErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivityError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ActivityGroupStatus", false)) { + /** + * The activity group status. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityGroupStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivityGroup.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activityGroups = null) { + $this->activityGroups = $activityGroups; + } + + } +} + +if (!class_exists("CreateActivityGroupsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetActivityGroupsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetActivityGroupsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetActivityGroupsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityGroupPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateActivityGroups", false)) { + /** + * Updates the specified {@link ActivityGroup} objects. + * + * @param activityGroups the activity groups to update. + * @return the updated activity groups. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateActivityGroups { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityGroup[] + */ + public $activityGroups; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activityGroups = null) { + $this->activityGroups = $activityGroups; + } + + } +} + +if (!class_exists("UpdateActivityGroupsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateActivityGroupsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityGroup[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivityError", false)) { + /** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivityError"; + + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ActivityGroupService", false)) { + /** + * ActivityGroupService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityGroupService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityGroupService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ActivityGroupService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ActivityGroupService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivityError" => "ActivityError", + "ActivityGroup" => "ActivityGroup", + "ActivityGroupPage" => "ActivityGroupPage", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ActivityError.Reason" => "ActivityErrorReason", + "ActivityGroup.Status" => "ActivityGroupStatus", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createActivityGroups" => "CreateActivityGroups", + "createActivityGroupsResponse" => "CreateActivityGroupsResponse", + "getActivityGroupsByStatement" => "GetActivityGroupsByStatement", + "getActivityGroupsByStatementResponse" => "GetActivityGroupsByStatementResponse", + "updateActivityGroups" => "UpdateActivityGroups", + "updateActivityGroupsResponse" => "UpdateActivityGroupsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateActivityGroups($activityGroups); + $result = $this->__soapCall("createActivityGroups", array($args)); + 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) { + $args = new GetActivityGroupsByStatement($filterStatement); + $result = $this->__soapCall("getActivityGroupsByStatement", array($args)); + 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) { + $args = new UpdateActivityGroups($activityGroups); + $result = $this->__soapCall("updateActivityGroups", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ActivityService.php b/src/Google/Api/Ads/Dfp/v201505/ActivityService.php new file mode 100755 index 000000000..5ad786962 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ActivityService.php @@ -0,0 +1,2833 @@ +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 v201505 + */ + class Activity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ActivityPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ActivityStatus", false)) { + /** + * The activity status. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Activity.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ActivityType", false)) { + /** + * The activity type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Activity.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ActivityErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivityError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activities = null) { + $this->activities = $activities; + } + + } +} + +if (!class_exists("CreateActivitiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetActivitiesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetActivitiesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetActivitiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ActivityPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateActivities", false)) { + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateActivities { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Activity[] + */ + public $activities; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activities = null) { + $this->activities = $activities; + } + + } +} + +if (!class_exists("UpdateActivitiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateActivitiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Activity[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivityError", false)) { + /** + * Errors relating to Activity and Activity Group services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivityError"; + + /** + * @access public + * @var tnsActivityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ActivityService", false)) { + /** + * ActivityService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivityService extends DfpSoapClient { + + const SERVICE_NAME = "ActivityService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ActivityService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ActivityService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "Activity" => "Activity", + "ActivityError" => "ActivityError", + "ActivityPage" => "ActivityPage", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "Activity.Status" => "ActivityStatus", + "Activity.Type" => "ActivityType", + "ActivityError.Reason" => "ActivityErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getActivitiesByStatement" => "GetActivitiesByStatement", + "getActivitiesByStatementResponse" => "GetActivitiesByStatementResponse", + "updateActivities" => "UpdateActivities", + "updateActivitiesResponse" => "UpdateActivitiesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a new {@link Activity} objects. + * + * @param activities to be created. + * @return the created activities with its IDs filled in. + */ + public function createActivities($activities) { + $args = new CreateActivities($activities); + $result = $this->__soapCall("createActivities", array($args)); + 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) { + $args = new GetActivitiesByStatement($filterStatement); + $result = $this->__soapCall("getActivitiesByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Activity} objects. + * + * @param activities to be updated. + * @return the updated activities. + */ + public function updateActivities($activities) { + $args = new UpdateActivities($activities); + $result = $this->__soapCall("updateActivities", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/AdExclusionRuleService.php b/src/Google/Api/Ads/Dfp/v201505/AdExclusionRuleService.php new file mode 100755 index 000000000..7470b9f33 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/AdExclusionRuleService.php @@ -0,0 +1,3270 @@ +id = $id; + $this->name = $name; + $this->isActive = $isActive; + $this->inventoryTargeting = $inventoryTargeting; + $this->isBlockAll = $isBlockAll; + $this->blockedLabelIds = $blockedLabelIds; + $this->allowedLabelIds = $allowedLabelIds; + $this->type = $type; + } + + } +} + +if (!class_exists("AdExclusionRulePage", false)) { + /** + * Represents a page of {@link AdExclusionRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExclusionRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdExclusionRulePage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("AdUnitTargeting", false)) { + /** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DeactivateAdExclusionRules", false)) { + /** + * Deactivate action. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateAdExclusionRules extends AdExclusionRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateAdExclusionRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedAdUnits = null, $excludedAdUnits = null, $targetedPlacementIds = null) { + $this->targetedAdUnits = $targetedAdUnits; + $this->excludedAdUnits = $excludedAdUnits; + $this->targetedPlacementIds = $targetedPlacementIds; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdExclusionRuleErrorReason", false)) { + /** + * The reasons for the ad exclusion rule error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExclusionRuleErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdExclusionRuleError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdExclusionRuleType", false)) { + /** + * The derived type of this rule: whether it is associated with labels, unified entities, + * or competitive groups. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExclusionRuleType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdExclusionRuleType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateAdExclusionRules", false)) { + /** + * Creates new {@link AdExclusionRule} objects. + * @param adExclusionRules the ad exclusion rules to create + * @return the created rules with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAdExclusionRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $adExclusionRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adExclusionRules = null) { + $this->adExclusionRules = $adExclusionRules; + } + + } +} + +if (!class_exists("CreateAdExclusionRulesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAdExclusionRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetAdExclusionRulesByStatement", false)) { + /** + * Gets a {@link AdExclusionRulePage} of {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link AdExclusionRule#id}
    {@code name}{@link AdExclusionRule#name}
    {@code status}{@link AdExclusionRule#status}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rules + * @return the rules that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAdExclusionRulesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetAdExclusionRulesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAdExclusionRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformAdExclusionRuleAction", false)) { + /** + * Performs action on {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. + * + * @param adExclusionRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad exclusion rules + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformAdExclusionRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRuleAction + */ + public $adExclusionRuleAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adExclusionRuleAction = null, $filterStatement = null) { + $this->adExclusionRuleAction = $adExclusionRuleAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformAdExclusionRuleActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformAdExclusionRuleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateAdExclusionRules", false)) { + /** + * Updates the specified {@link AdExclusionRule} objects. + * + * @param adExclusionRules the ad exclusion rules to update + * @return the updated rules + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAdExclusionRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $adExclusionRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adExclusionRules = null) { + $this->adExclusionRules = $adExclusionRules; + } + + } +} + +if (!class_exists("UpdateAdExclusionRulesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAdExclusionRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdExclusionRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateAdExclusionRules", false)) { + /** + * Activate action. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateAdExclusionRules extends AdExclusionRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateAdExclusionRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdExclusionRuleError", false)) { + /** + * Ad exclusion rule specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExclusionRuleError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdExclusionRuleError"; + + /** + * @access public + * @var tnsAdExclusionRuleErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("AdExclusionRuleService", false)) { + /** + * AdExclusionRuleService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExclusionRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdExclusionRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/AdExclusionRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/AdExclusionRuleService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateAdExclusionRules" => "ActivateAdExclusionRules", + "AdExclusionRuleAction" => "AdExclusionRuleAction", + "AdExclusionRule" => "AdExclusionRule", + "AdExclusionRuleError" => "AdExclusionRuleError", + "AdExclusionRulePage" => "AdExclusionRulePage", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAdExclusionRules" => "DeactivateAdExclusionRules", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "AdExclusionRuleError.Reason" => "AdExclusionRuleErrorReason", + "AdExclusionRuleType" => "AdExclusionRuleType", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "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", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createAdExclusionRules" => "CreateAdExclusionRules", + "createAdExclusionRulesResponse" => "CreateAdExclusionRulesResponse", + "getAdExclusionRulesByStatement" => "GetAdExclusionRulesByStatement", + "getAdExclusionRulesByStatementResponse" => "GetAdExclusionRulesByStatementResponse", + "performAdExclusionRuleAction" => "PerformAdExclusionRuleAction", + "performAdExclusionRuleActionResponse" => "PerformAdExclusionRuleActionResponse", + "updateAdExclusionRules" => "UpdateAdExclusionRules", + "updateAdExclusionRulesResponse" => "UpdateAdExclusionRulesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link AdExclusionRule} objects. + * @param adExclusionRules the ad exclusion rules to create + * @return the created rules with their IDs filled in + */ + public function createAdExclusionRules($adExclusionRules) { + $args = new CreateAdExclusionRules($adExclusionRules); + $result = $this->__soapCall("createAdExclusionRules", array($args)); + return $result->rval; + } + /** + * Gets a {@link AdExclusionRulePage} of {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link AdExclusionRule#id}
    {@code name}{@link AdExclusionRule#name}
    {@code status}{@link AdExclusionRule#status}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of rules + * @return the rules that match the given filter + */ + public function getAdExclusionRulesByStatement($filterStatement) { + $args = new GetAdExclusionRulesByStatement($filterStatement); + $result = $this->__soapCall("getAdExclusionRulesByStatement", array($args)); + return $result->rval; + } + /** + * Performs action on {@link AdExclusionRule} objects that satisfy the + * given {@link Statement#query}. + * + * @param adExclusionRuleAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of ad exclusion rules + * @return the result of the action performed + */ + public function performAdExclusionRuleAction($adExclusionRuleAction, $filterStatement) { + $args = new PerformAdExclusionRuleAction($adExclusionRuleAction, $filterStatement); + $result = $this->__soapCall("performAdExclusionRuleAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link AdExclusionRule} objects. + * + * @param adExclusionRules the ad exclusion rules to update + * @return the updated rules + */ + public function updateAdExclusionRules($adExclusionRules) { + $args = new UpdateAdExclusionRules($adExclusionRules); + $result = $this->__soapCall("updateAdExclusionRules", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/AdRuleService.php b/src/Google/Api/Ads/Dfp/v201505/AdRuleService.php new file mode 100755 index 000000000..838fc3eb0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/AdRuleService.php @@ -0,0 +1,6675 @@ +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 v201505 + */ + class AdRulePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseAdRuleSlot"; + + /** + * @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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { + $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; + } + + } +} + +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 v201505 + */ + class StandardPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StandardPoddingAdRuleSlot"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { + parent::__construct(); + $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; + } + + } +} + +if (!class_exists("AdUnitTargeting", false)) { + /** + * Represents targeted or excluded ad units. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; + } + + } +} + +if (!class_exists("ContentMetadataTargetingError", false)) { + /** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentTargeting", false)) { + /** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeactivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateAdRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeleteAdRules", false)) { + /** + * The action used for deleting {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteAdRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PoddingError", false)) { + /** + * Errors related to podding fields in ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PoddingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PoddingError"; + + /** + * @access public + * @var tnsPoddingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TimeOfDay", false)) { + /** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class UnknownAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnknownAdRuleSlot"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { + parent::__construct(); + $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; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AdRuleDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRuleFrequencyCapErrorReason", false)) { + /** + * Describes reason for {@code AdRuleFrequencyCapError}s. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleFrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleFrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRulePriorityErrorReason", false)) { + /** + * Reasons for an {@code AdRulePriorityError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRulePriorityErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRulePriorityError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRuleSlotBehavior", false)) { + /** + * The types of behaviors for ads within a {@link BaseAdRuleSlot ad rule slot}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleSlotBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleSlotBehavior"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRuleSlotBumper", false)) { + /** + * Types of bumper ads on an ad rule slot. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleSlotBumper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleSlotBumper"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRuleSlotErrorReason", false)) { + /** + * Describes reason for {@code AdRuleSlotError}s. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleSlotErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleSlotError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdRuleStatus", false)) { + /** + * Represents the status of ad rules and ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { + /** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayOfWeek"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryTimeZone", false)) { + /** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryTimeZone"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapBehavior", false)) { + /** + * Types of behavior for frequency caps within ad rules. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapBehavior { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapBehavior"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MidrollFrequencyType", false)) { + /** + * Frequency types for mid-roll {@link BaseAdRuleSlot ad rule slots}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MidrollFrequencyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MidrollFrequencyType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MinuteOfHour", false)) { + /** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MinuteOfHour"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PoddingErrorReason", false)) { + /** + * Describes reason for {@code PoddingError}s. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PoddingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PoddingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StartDateTimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adRules = null) { + $this->adRules = $adRules; + } + + } +} + +if (!class_exists("CreateAdRulesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAdRulesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetAdRulesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAdRulesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdRulePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformAdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adRuleAction = null, $filterStatement = null) { + $this->adRuleAction = $adRuleAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformAdRuleActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformAdRuleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateAdRules { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdRule[] + */ + public $adRules; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adRules = null) { + $this->adRules = $adRules; + } + + } +} + +if (!class_exists("UpdateAdRulesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAdRulesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdRule[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateAdRules", false)) { + /** + * The action used for resuming {@link AdRule} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateAdRules extends AdRuleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateAdRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdRuleDateError", false)) { + /** + * Lists all errors associated with ad rule start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleDateError"; + + /** + * @access public + * @var tnsAdRuleDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdRuleFrequencyCapError", false)) { + /** + * Errors related to ad rule frequency caps + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleFrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleFrequencyCapError"; + + /** + * @access public + * @var tnsAdRuleFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NoPoddingAdRuleSlot", false)) { + /** + * An ad rule slot with no podding. It is defined by a {@link BaseAdRuleSlot#maxVideoAdDuration}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NoPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NoPoddingAdRuleSlot"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { + parent::__construct(); + $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; + } + + } +} + +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 v201505 + */ + class OptimizedPoddingAdRuleSlot extends BaseAdRuleSlot { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OptimizedPoddingAdRuleSlot"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($slotBehavior = null, $minVideoAdDuration = null, $maxVideoAdDuration = null, $videoMidrollFrequencyType = null, $videoMidrollFrequency = null, $bumper = null, $maxBumperDuration = null, $minPodDuration = null, $maxPodDuration = null, $maxAdsInPod = null) { + parent::__construct(); + $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; + } + + } +} + +if (!class_exists("AdRulePriorityError", false)) { + /** + * Errors associated with ad rule priorities. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRulePriorityError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRulePriorityError"; + + /** + * @access public + * @var tnsAdRulePriorityErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdRuleSlotError", false)) { + /** + * Errors related to ad rule slots. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleSlotError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdRuleSlotError"; + + /** + * @access public + * @var tnsAdRuleSlotErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("AdRuleService", false)) { + /** + * AdRuleService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdRuleService extends DfpSoapClient { + + const SERVICE_NAME = "AdRuleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/AdRuleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/AdRuleService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateAdRules" => "ActivateAdRules", + "AdRuleAction" => "AdRuleAction", + "AdRuleDateError" => "AdRuleDateError", + "AdRule" => "AdRule", + "AdRuleFrequencyCapError" => "AdRuleFrequencyCapError", + "NoPoddingAdRuleSlot" => "NoPoddingAdRuleSlot", + "OptimizedPoddingAdRuleSlot" => "OptimizedPoddingAdRuleSlot", + "AdRulePage" => "AdRulePage", + "AdRulePriorityError" => "AdRulePriorityError", + "BaseAdRuleSlot" => "BaseAdRuleSlot", + "AdRuleSlotError" => "AdRuleSlotError", + "StandardPoddingAdRuleSlot" => "StandardPoddingAdRuleSlot", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Location" => "DfpLocation", + "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", + "Technology" => "Technology", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "UniqueError" => "UniqueError", + "UnknownAdRuleSlot" => "UnknownAdRuleSlot", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "Value" => "Value", + "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", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createAdRules" => "CreateAdRules", + "createAdRulesResponse" => "CreateAdRulesResponse", + "getAdRulesByStatement" => "GetAdRulesByStatement", + "getAdRulesByStatementResponse" => "GetAdRulesByStatementResponse", + "performAdRuleAction" => "PerformAdRuleAction", + "performAdRuleActionResponse" => "PerformAdRuleActionResponse", + "updateAdRules" => "UpdateAdRules", + "updateAdRulesResponse" => "UpdateAdRulesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateAdRules($adRules); + $result = $this->__soapCall("createAdRules", array($args)); + 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) { + $args = new GetAdRulesByStatement($statement); + $result = $this->__soapCall("getAdRulesByStatement", array($args)); + 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) { + $args = new PerformAdRuleAction($adRuleAction, $filterStatement); + $result = $this->__soapCall("performAdRuleAction", array($args)); + 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) { + $args = new UpdateAdRules($adRules); + $result = $this->__soapCall("updateAdRules", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/AudienceSegmentService.php b/src/Google/Api/Ads/Dfp/v201505/AudienceSegmentService.php new file mode 100755 index 000000000..cfdee60a3 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/AudienceSegmentService.php @@ -0,0 +1,4205 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AudienceSegmentDataProvider { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentDataProvider"; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($name = null) { + $this->name = $name; + } + + } +} + +if (!class_exists("AudienceSegmentPage", false)) { + /** + * Represents a page of {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FirstPartyAudienceSegmentRule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceSegmentAction", false)) { + /** + * Action that can be performed on {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegment", false)) { + /** + * An {@link AudienceSegment} represents audience segment object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegment"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer[] + */ + public $categoryIds; + + /** + * @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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { + $this->id = $id; + $this->name = $name; + $this->categoryIds = $categoryIds; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class SharedAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SharedAudienceSegment"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->categoryIds = $categoryIds; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", false)) { + /** + * Approval status values for {@link ThirdPartyAudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ThirdPartyAudienceSegmentLicenseType", false)) { + /** + * Specifies the license type of a {@link ThirdPartyAudienceSegment}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ThirdPartyAudienceSegmentLicenseType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ThirdPartyAudienceSegment.LicenseType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentAudienceSegmentType", false)) { + /** + * Specifies types for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentAudienceSegmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegment.AudienceSegmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentStatus", false)) { + /** + * Specifies the statuses for {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegment.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateAudienceSegments", false)) { + /** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($segments = null) { + $this->segments = $segments; + } + + } +} + +if (!class_exists("CreateAudienceSegmentsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAudienceSegmentsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetAudienceSegmentsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAudienceSegmentsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AudienceSegmentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformAudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($action = null, $filterStatement = null) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformAudienceSegmentActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformAudienceSegmentActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateAudienceSegments { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $segments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($segments = null) { + $this->segments = $segments; + } + + } +} + +if (!class_exists("UpdateAudienceSegmentsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAudienceSegmentsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var FirstPartyAudienceSegment[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateAudienceSegments", false)) { + /** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to activate them. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateAudienceSegments"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ApproveAudienceSegments", false)) { + /** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to approve them. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApproveAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveAudienceSegments"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("FirstPartyAudienceSegment", false)) { + /** + * A {@link FirstPartyAudienceSegment} is an {@link AudienceSegment} owned by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FirstPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FirstPartyAudienceSegment"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->categoryIds = $categoryIds; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateAudienceSegments", false)) { + /** + * Action that can be performed on {@link FirstPartyAudienceSegment} objects to deactivate them. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateAudienceSegments"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class ThirdPartyAudienceSegment extends AudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ThirdPartyAudienceSegment"; + + /** + * @access public + * @var tnsThirdPartyAudienceSegmentAudienceSegmentApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var Money + */ + public $cost; + + /** + * @access public + * @var tnsThirdPartyAudienceSegmentLicenseType + */ + public $licenseType; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($approvalStatus = null, $cost = null, $licenseType = null, $startDateTime = null, $endDateTime = null, $id = null, $name = null, $categoryIds = null, $description = null, $status = null, $size = null, $dataProvider = null, $type = null) { + parent::__construct(); + $this->approvalStatus = $approvalStatus; + $this->cost = $cost; + $this->licenseType = $licenseType; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->id = $id; + $this->name = $name; + $this->categoryIds = $categoryIds; + $this->description = $description; + $this->status = $status; + $this->size = $size; + $this->dataProvider = $dataProvider; + $this->type = $type; + } + + } +} + +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 v201505 + */ + class NonRuleBasedFirstPartyAudienceSegment extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NonRuleBasedFirstPartyAudienceSegment"; + + /** + * @access public + * @var integer + */ + public $membershipExpirationDays; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($membershipExpirationDays = null) { + parent::__construct(); + $this->membershipExpirationDays = $membershipExpirationDays; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class PopulateAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PopulateAudienceSegments"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("RejectAudienceSegments", false)) { + /** + * Action that can be performed on {@link ThirdPartyAudienceSegment} objects to reject them. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RejectAudienceSegments extends AudienceSegmentAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RejectAudienceSegments"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("RuleBasedFirstPartyAudienceSegmentSummary", false)) { + /** + * A {@link RuleBasedFirstPartyAudienceSegmentSummary} is a {@link FirstPartyAudienceSegment} owned + * by the publisher network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RuleBasedFirstPartyAudienceSegmentSummary extends FirstPartyAudienceSegment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RuleBasedFirstPartyAudienceSegmentSummary"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($pageViews = null, $recencyDays = null, $membershipExpirationDays = null) { + parent::__construct(); + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("RuleBasedFirstPartyAudienceSegment", false)) { + /** + * A {@link RuleBasedFirstPartyAudienceSegment} is a {@link FirstPartyAudienceSegment} owned by the + * publisher network. It contains a rule. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RuleBasedFirstPartyAudienceSegment extends RuleBasedFirstPartyAudienceSegmentSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RuleBasedFirstPartyAudienceSegment"; + + /** + * @access public + * @var FirstPartyAudienceSegmentRule + */ + public $rule; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rule = null, $pageViews = null, $recencyDays = null, $membershipExpirationDays = null) { + parent::__construct(); + $this->rule = $rule; + $this->pageViews = $pageViews; + $this->recencyDays = $recencyDays; + $this->membershipExpirationDays = $membershipExpirationDays; + } + + } +} + +if (!class_exists("AudienceSegmentService", false)) { + /** + * AudienceSegmentService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentService extends DfpSoapClient { + + const SERVICE_NAME = "AudienceSegmentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/AudienceSegmentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/AudienceSegmentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateAudienceSegments" => "ActivateAudienceSegments", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveAudienceSegments" => "ApproveAudienceSegments", + "AudienceSegmentDataProvider" => "AudienceSegmentDataProvider", + "AudienceSegmentPage" => "AudienceSegmentPage", + "AuthenticationError" => "AuthenticationError", + "FirstPartyAudienceSegment" => "FirstPartyAudienceSegment", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAudienceSegments" => "DeactivateAudienceSegments", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "ThirdPartyAudienceSegment" => "ThirdPartyAudienceSegment", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "Money" => "Money", + "NonRuleBasedFirstPartyAudienceSegment" => "NonRuleBasedFirstPartyAudienceSegment", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PopulateAudienceSegments" => "PopulateAudienceSegments", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "FirstPartyAudienceSegmentRule" => "FirstPartyAudienceSegmentRule", + "QuotaError" => "QuotaError", + "RejectAudienceSegments" => "RejectAudienceSegments", + "RequiredError" => "RequiredError", + "RuleBasedFirstPartyAudienceSegment" => "RuleBasedFirstPartyAudienceSegment", + "RuleBasedFirstPartyAudienceSegmentSummary" => "RuleBasedFirstPartyAudienceSegmentSummary", + "AudienceSegmentAction" => "AudienceSegmentAction", + "AudienceSegment" => "AudienceSegment", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SharedAudienceSegment" => "SharedAudienceSegment", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ThirdPartyAudienceSegment.AudienceSegmentApprovalStatus" => "ThirdPartyAudienceSegmentAudienceSegmentApprovalStatus", + "ThirdPartyAudienceSegment.LicenseType" => "ThirdPartyAudienceSegmentLicenseType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "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", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link RuleBasedFirstPartyAudienceSegment} objects. + * + * @param segments first-party audience segments to create + * @return created first-party audience segments + */ + public function createAudienceSegments($segments) { + $args = new CreateAudienceSegments($segments); + $result = $this->__soapCall("createAudienceSegments", array($args)); + 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) { + $args = new GetAudienceSegmentsByStatement($filterStatement); + $result = $this->__soapCall("getAudienceSegmentsByStatement", array($args)); + 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) { + $args = new PerformAudienceSegmentAction($action, $filterStatement); + $result = $this->__soapCall("performAudienceSegmentAction", array($args)); + 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) { + $args = new UpdateAudienceSegments($segments); + $result = $this->__soapCall("updateAudienceSegments", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/BaseRateService.php b/src/Google/Api/Ads/Dfp/v201505/BaseRateService.php new file mode 100755 index 000000000..996852937 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/BaseRateService.php @@ -0,0 +1,3310 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseRateAction", false)) { + /** + * Represents the action that can be performed on {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateActionError", false)) { + /** + * An error having to do with {@link BaseRate} when performing actions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateActionError"; + + /** + * @access public + * @var tnsBaseRateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseRate", false)) { + /** + * A base rate that applies to a product template, product or product package + * item belonging to rate card. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRate"; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCardId = null, $id = null) { + $this->rateCardId = $rateCardId; + $this->id = $id; + } + + } +} + +if (!class_exists("BaseRateError", false)) { + /** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError"; + + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseRatePage", false)) { + /** + * Captures a page of {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DeleteBaseRates", false)) { + /** + * The action used to delete {@link BaseRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteBaseRates extends BaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteBaseRates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductBaseRate", false)) { + /** + * A base rate applied to a {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductBaseRate"; + + /** + * @access public + * @var integer + */ + public $productId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productId = null, $rate = null, $rateCardId = null, $id = null) { + parent::__construct(); + $this->productId = $productId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + } + + } +} + +if (!class_exists("ProductPackageItemBaseRate", false)) { + /** + * A base rate applied to a {@link ProductPackageItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemBaseRate"; + + /** + * @access public + * @var integer + */ + public $productPackageItemId; + + /** + * @access public + * @var Money + */ + public $rate; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackageItemId = null, $rate = null, $rateCardId = null, $id = null) { + parent::__construct(); + $this->productPackageItemId = $productPackageItemId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + } + + } +} + +if (!class_exists("ProductTemplateBaseRate", false)) { + /** + * A base rate applied to a {@link ProductTemplate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateBaseRate"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productTemplateId = null, $rate = null, $rateCardId = null, $id = null) { + parent::__construct(); + $this->productTemplateId = $productTemplateId; + $this->rate = $rate; + $this->rateCardId = $rateCardId; + $this->id = $id; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("UnknownBaseRate", false)) { + /** + * The {@link BaseRate} returned if the actual base rate type is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnknownBaseRate extends BaseRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnknownBaseRate"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCardId = null, $id = null) { + parent::__construct(); + $this->rateCardId = $rateCardId; + $this->id = $id; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($baseRates = null) { + $this->baseRates = $baseRates; + } + + } +} + +if (!class_exists("CreateBaseRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetBaseRatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetBaseRatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetBaseRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var BaseRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformBaseRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($baseRateAction = null, $filterStatement = null) { + $this->baseRateAction = $baseRateAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformBaseRateActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformBaseRateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateBaseRates", false)) { + /** + * Updates the specified {@link BaseRate} objects. + * + * @param baseRates the base rates to be updated + * @return the updated base rates + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateBaseRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var BaseRate[] + */ + public $baseRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($baseRates = null) { + $this->baseRates = $baseRates; + } + + } +} + +if (!class_exists("UpdateBaseRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateBaseRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var BaseRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("BaseRateService", false)) { + /** + * BaseRateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateService extends DfpSoapClient { + + const SERVICE_NAME = "BaseRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/BaseRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/BaseRateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BaseRateAction" => "BaseRateAction", + "BaseRateActionError" => "BaseRateActionError", + "BaseRate" => "BaseRate", + "BaseRateError" => "BaseRateError", + "BaseRatePage" => "BaseRatePage", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteBaseRates" => "DeleteBaseRates", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductBaseRate" => "ProductBaseRate", + "ProductPackageItemBaseRate" => "ProductPackageItemBaseRate", + "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", + "UnknownBaseRate" => "UnknownBaseRate", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateActionError.Reason" => "BaseRateActionErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "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", + "createBaseRates" => "CreateBaseRates", + "createBaseRatesResponse" => "CreateBaseRatesResponse", + "getBaseRatesByStatement" => "GetBaseRatesByStatement", + "getBaseRatesByStatementResponse" => "GetBaseRatesByStatementResponse", + "performBaseRateAction" => "PerformBaseRateAction", + "performBaseRateActionResponse" => "PerformBaseRateActionResponse", + "updateBaseRates" => "UpdateBaseRates", + "updateBaseRatesResponse" => "UpdateBaseRatesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateBaseRates($baseRates); + $result = $this->__soapCall("createBaseRates", array($args)); + 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 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) { + $args = new GetBaseRatesByStatement($filterStatement); + $result = $this->__soapCall("getBaseRatesByStatement", array($args)); + 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) { + $args = new PerformBaseRateAction($baseRateAction, $filterStatement); + $result = $this->__soapCall("performBaseRateAction", array($args)); + 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) { + $args = new UpdateBaseRates($baseRates); + $result = $this->__soapCall("updateBaseRates", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CompanyService.php b/src/Google/Api/Ads/Dfp/v201505/CompanyService.php new file mode 100755 index 000000000..b56769111 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CompanyService.php @@ -0,0 +1,3461 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelId = null, $isNegated = null) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AvailableBillingError", false)) { + /** + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError"; + + /** + * @access public + * @var tnsAvailableBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyCreditStatusError", false)) { + /** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError"; + + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Company", false)) { + /** + * A {@code Company} represents an agency, a single advertiser or an entire + * advertising network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Company { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $type = null, $address = null, $email = null, $faxPhone = null, $primaryPhone = null, $externalId = null, $comment = null, $creditStatus = null, $appliedLabels = 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->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 v201505 + */ + class CompanyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyError"; + + /** + * @access public + * @var tnsCompanyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyPage", false)) { + /** + * Captures a page of {@link Company} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyCreditStatusErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CompanyCreditStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Company.CreditStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyType", false)) { + /** + * The type of the company. Once a company is created, it is not possible to + * change its type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Company.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyErrorReason", false)) { + /** + * Enumerates all possible company specific errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companies = null) { + $this->companies = $companies; + } + + } +} + +if (!class_exists("CreateCompaniesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 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 v201505 + */ + class GetCompaniesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCompaniesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCompaniesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CompanyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateCompanies", false)) { + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCompanies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Company[] + */ + public $companies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companies = null) { + $this->companies = $companies; + } + + } +} + +if (!class_exists("UpdateCompaniesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCompaniesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Company[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CompanyService", false)) { + /** + * CompanyService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyService extends DfpSoapClient { + + const SERVICE_NAME = "CompanyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CompanyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CompanyService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "Company" => "Company", + "CompanyError" => "CompanyError", + "CompanyPage" => "CompanyPage", + "CrossSellError" => "CrossSellError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "Company.CreditStatus" => "CompanyCreditStatus", + "Company.Type" => "CompanyType", + "CompanyError.Reason" => "CompanyErrorReason", + "CrossSellError.Reason" => "CrossSellErrorReason", + "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", + "getCompaniesByStatement" => "GetCompaniesByStatement", + "getCompaniesByStatementResponse" => "GetCompaniesByStatementResponse", + "updateCompanies" => "UpdateCompanies", + "updateCompaniesResponse" => "UpdateCompaniesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Company} objects. + * + * @param companies the companies to create + * @return the created companies with their IDs filled in + */ + public function createCompanies($companies) { + $args = new CreateCompanies($companies); + $result = $this->__soapCall("createCompanies", array($args)); + 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) { + $args = new GetCompaniesByStatement($filterStatement); + $result = $this->__soapCall("getCompaniesByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Company} objects. + * + * @param companies the companies to update + * @return the updated companies + */ + public function updateCompanies($companies) { + $args = new UpdateCompanies($companies); + $result = $this->__soapCall("updateCompanies", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ContactService.php b/src/Google/Api/Ads/Dfp/v201505/ContactService.php new file mode 100755 index 000000000..f703693bf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ContactService.php @@ -0,0 +1,2909 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContactError", false)) { + /** + * Errors associated with {@code Contact}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContactError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContactError"; + + /** + * @access public + * @var tnsContactErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContactPage", false)) { + /** + * Captures a page of {@link Contact} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContactPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseContact"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContactStatus", false)) { + /** + * Describes the contact statuses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContactStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Contact.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContactErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContactErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContactError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contacts = null) { + $this->contacts = $contacts; + } + + } +} + +if (!class_exists("CreateContactsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetContactsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetContactsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetContactsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContactPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateContacts", false)) { + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContacts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Contact[] + */ + public $contacts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contacts = null) { + $this->contacts = $contacts; + } + + } +} + +if (!class_exists("UpdateContactsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContactsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Contact[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class Contact extends BaseContact { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Contact"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $companyId = null, $status = null, $address = null, $cellPhone = null, $comment = null, $email = null, $faxPhone = null, $title = null, $workPhone = 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; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ContactService", false)) { + /** + * ContactService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContactService extends DfpSoapClient { + + const SERVICE_NAME = "ContactService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ContactService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ContactService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Contact" => "Contact", + "ContactError" => "ContactError", + "ContactPage" => "ContactPage", + "BaseContact" => "BaseContact", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createContacts" => "CreateContacts", + "createContactsResponse" => "CreateContactsResponse", + "getContactsByStatement" => "GetContactsByStatement", + "getContactsByStatementResponse" => "GetContactsByStatementResponse", + "updateContacts" => "UpdateContacts", + "updateContactsResponse" => "UpdateContactsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Contact} objects. + * + * @param contacts the contacts to create + * @return the created contacts with their IDs filled in + */ + public function createContacts($contacts) { + $args = new CreateContacts($contacts); + $result = $this->__soapCall("createContacts", array($args)); + 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) { + $args = new GetContactsByStatement($statement); + $result = $this->__soapCall("getContactsByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Contact} objects. + * + * @param contacts the contacts to update + * @return the updated contacts + */ + public function updateContacts($contacts) { + $args = new UpdateContacts($contacts); + $result = $this->__soapCall("updateContacts", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ContentBundleService.php b/src/Google/Api/Ads/Dfp/v201505/ContentBundleService.php new file mode 100755 index 000000000..56f8b49b6 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ContentBundleService.php @@ -0,0 +1,2947 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentBundleAction", false)) { + /** + * Represents the actions that can be performed on {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentBundleAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class ContentBundle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ContentBundlePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeactivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateContentBundles"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ExcludeContentFromContentBundle", false)) { + /** + * The action used for explicitly excluding specific content from a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExcludeContentFromContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExcludeContentFromContentBundle"; + + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentStatement = null) { + parent::__construct(); + $this->contentStatement = $contentStatement; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("IncludeContentInContentBundle", false)) { + /** + * The action used for explicitly including specific content in a {@link ContentBundle} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class IncludeContentInContentBundle extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "IncludeContentInContentBundle"; + + /** + * @access public + * @var Statement + */ + public $contentStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentStatement = null) { + parent::__construct(); + $this->contentStatement = $contentStatement; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PlacementError", false)) { + /** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementError"; + + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentBundleStatus", false)) { + /** + * Status for {@code ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentBundleStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentBundleStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PlacementErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentBundles = null) { + $this->contentBundles = $contentBundles; + } + + } +} + +if (!class_exists("CreateContentBundlesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetContentBundlesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetContentBundlesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetContentBundlesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentBundlePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentBundleAction = null, $filterStatement = null) { + $this->contentBundleAction = $contentBundleAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformContentBundleActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformContentBundleActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateContentBundles", false)) { + /** + * Updates the specified {@link ContentBundle} objects. + * + * @param contentBundles the content bundles to update + * @return the updated content bundles + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContentBundles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentBundle[] + */ + public $contentBundles; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentBundles = null) { + $this->contentBundles = $contentBundles; + } + + } +} + +if (!class_exists("UpdateContentBundlesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContentBundlesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentBundle[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateContentBundles", false)) { + /** + * The action used for activating {@link ContentBundle} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateContentBundles extends ContentBundleAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateContentBundles"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ContentBundleService", false)) { + /** + * ContentBundleService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentBundleService extends DfpSoapClient { + + const SERVICE_NAME = "ContentBundleService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ContentBundleService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ContentBundleService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateContentBundles" => "ActivateContentBundles", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentBundleAction" => "ContentBundleAction", + "ContentBundle" => "ContentBundle", + "ContentBundlePage" => "ContentBundlePage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createContentBundles" => "CreateContentBundles", + "createContentBundlesResponse" => "CreateContentBundlesResponse", + "getContentBundlesByStatement" => "GetContentBundlesByStatement", + "getContentBundlesByStatementResponse" => "GetContentBundlesByStatementResponse", + "performContentBundleAction" => "PerformContentBundleAction", + "performContentBundleActionResponse" => "PerformContentBundleActionResponse", + "updateContentBundles" => "UpdateContentBundles", + "updateContentBundlesResponse" => "UpdateContentBundlesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateContentBundles($contentBundles); + $result = $this->__soapCall("createContentBundles", array($args)); + 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) { + $args = new GetContentBundlesByStatement($filterStatement); + $result = $this->__soapCall("getContentBundlesByStatement", array($args)); + 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) { + $args = new PerformContentBundleAction($contentBundleAction, $filterStatement); + $result = $this->__soapCall("performContentBundleAction", array($args)); + 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) { + $args = new UpdateContentBundles($contentBundles); + $result = $this->__soapCall("updateContentBundles", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ContentMetadataKeyHierarchyService.php b/src/Google/Api/Ads/Dfp/v201505/ContentMetadataKeyHierarchyService.php new file mode 100755 index 000000000..eaa884154 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ContentMetadataKeyHierarchyService.php @@ -0,0 +1,3137 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyAction", false)) { + /** + * Represents the actions that can be performed on {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchy", false)) { + /** + * A {@code ContentMetadataKeyHierarchy} defines a hierarchical relationship between content + * metadata keys. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchy"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var ContentMetadataKeyHierarchyLevel[] + */ + public $hierarchyLevels; + + /** + * @access public + * @var tnsContentMetadataKeyHierarchyStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $hierarchyLevels = null, $status = null) { + $this->id = $id; + $this->name = $name; + $this->hierarchyLevels = $hierarchyLevels; + $this->status = $status; + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyError", false)) { + /** + * Lists all errors associated with content hierarchies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError"; + + /** + * @access public + * @var tnsContentMetadataKeyHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyLevel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentMetadataKeyHierarchyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DeleteContentMetadataKeyHierarchies", false)) { + /** + * The action used for deleting {@link ContentMetadataKeyHierarchy} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteContentMetadataKeyHierarchies extends ContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteContentMetadataKeyHierarchies"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyErrorReason", false)) { + /** + * The reasons for the {@link ContentMetadataKeyHierarchyError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyStatus", false)) { + /** + * Represents the status of a {@link ContentMetadataKeyHierarchy}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchyStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateContentMetadataKeyHierarchies", false)) { + /** + * Creates new {@link ContentMetadataKeyHierarchy} objects. + * + * The following fields are required: + *
      + *
    • {@link ContentMetadataKeyHierarchy#id}
    • + *
    • {@link ContentMetadataKeyHierarchy#name}
    • + *
    • {@link ContentMetadataKeyHierarchy#hierarchyLevels}
    • + *
    + * + * @param contentMetadataKeyHierarchies the hierarchies to create + * @return the created hierarchies with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $contentMetadataKeyHierarchies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchies = null) { + $this->contentMetadataKeyHierarchies = $contentMetadataKeyHierarchies; + } + + } +} + +if (!class_exists("CreateContentMetadataKeyHierarchiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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}
    {@code status}{@link ContentMetadataKeyHierarchy#status}
    + * + * @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 v201505 + */ + class GetContentMetadataKeyHierarchiesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetContentMetadataKeyHierarchiesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetContentMetadataKeyHierarchiesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformContentMetadataKeyHierarchyAction", false)) { + /** + * Performs actions on {@link ContentMetadataKeyHierarchy} objects that match the given + * {@link Statement#query}. + * + * @param contentMetadataKeyHierarchyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of hierarchies + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformContentMetadataKeyHierarchyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchyAction + */ + public $contentMetadataKeyHierarchyAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchyAction = null, $filterStatement = null) { + $this->contentMetadataKeyHierarchyAction = $contentMetadataKeyHierarchyAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformContentMetadataKeyHierarchyActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformContentMetadataKeyHierarchyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateContentMetadataKeyHierarchies", false)) { + /** + * Updates the specified {@link ContentMetadataKeyHierarchy} objects. + * + * @param contentMetadataKeyHierarchies the hierarchies to update + * @return the updated hierarchies + * @throws ApiException if there is an error updating the one of the hierarchies + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContentMetadataKeyHierarchies { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $contentMetadataKeyHierarchies; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($contentMetadataKeyHierarchies = null) { + $this->contentMetadataKeyHierarchies = $contentMetadataKeyHierarchies; + } + + } +} + +if (!class_exists("UpdateContentMetadataKeyHierarchiesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateContentMetadataKeyHierarchiesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentMetadataKeyHierarchy[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ContentMetadataKeyHierarchyService", false)) { + /** + * ContentMetadataKeyHierarchyService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataKeyHierarchyService extends DfpSoapClient { + + const SERVICE_NAME = "ContentMetadataKeyHierarchyService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ContentMetadataKeyHierarchyService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ContentMetadataKeyHierarchyService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyAction" => "ContentMetadataKeyHierarchyAction", + "ContentMetadataKeyHierarchy" => "ContentMetadataKeyHierarchy", + "ContentMetadataKeyHierarchyError" => "ContentMetadataKeyHierarchyError", + "ContentMetadataKeyHierarchyLevel" => "ContentMetadataKeyHierarchyLevel", + "ContentMetadataKeyHierarchyPage" => "ContentMetadataKeyHierarchyPage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteContentMetadataKeyHierarchies" => "DeleteContentMetadataKeyHierarchies", + "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", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ContentMetadataKeyHierarchyError.Reason" => "ContentMetadataKeyHierarchyErrorReason", + "ContentMetadataKeyHierarchyStatus" => "ContentMetadataKeyHierarchyStatus", + "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", + "createContentMetadataKeyHierarchies" => "CreateContentMetadataKeyHierarchies", + "createContentMetadataKeyHierarchiesResponse" => "CreateContentMetadataKeyHierarchiesResponse", + "getContentMetadataKeyHierarchiesByStatement" => "GetContentMetadataKeyHierarchiesByStatement", + "getContentMetadataKeyHierarchiesByStatementResponse" => "GetContentMetadataKeyHierarchiesByStatementResponse", + "performContentMetadataKeyHierarchyAction" => "PerformContentMetadataKeyHierarchyAction", + "performContentMetadataKeyHierarchyActionResponse" => "PerformContentMetadataKeyHierarchyActionResponse", + "updateContentMetadataKeyHierarchies" => "UpdateContentMetadataKeyHierarchies", + "updateContentMetadataKeyHierarchiesResponse" => "UpdateContentMetadataKeyHierarchiesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link ContentMetadataKeyHierarchy} objects. + * + * The following fields are required: + *

      + *
    • {@link ContentMetadataKeyHierarchy#id}
    • + *
    • {@link ContentMetadataKeyHierarchy#name}
    • + *
    • {@link ContentMetadataKeyHierarchy#hierarchyLevels}
    • + *
    + * + * @param contentMetadataKeyHierarchies the hierarchies to create + * @return the created hierarchies with their IDs filled in + */ + public function createContentMetadataKeyHierarchies($contentMetadataKeyHierarchies) { + $args = new CreateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies); + $result = $this->__soapCall("createContentMetadataKeyHierarchies", array($args)); + return $result->rval; + } + /** + * 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}
    {@code status}{@link ContentMetadataKeyHierarchy#status}
    + * + * @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) { + $args = new GetContentMetadataKeyHierarchiesByStatement($filterStatement); + $result = $this->__soapCall("getContentMetadataKeyHierarchiesByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ContentMetadataKeyHierarchy} objects that match the given + * {@link Statement#query}. + * + * @param contentMetadataKeyHierarchyAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of hierarchies + * @return the result of the action performed + */ + public function performContentMetadataKeyHierarchyAction($contentMetadataKeyHierarchyAction, $filterStatement) { + $args = new PerformContentMetadataKeyHierarchyAction($contentMetadataKeyHierarchyAction, $filterStatement); + $result = $this->__soapCall("performContentMetadataKeyHierarchyAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ContentMetadataKeyHierarchy} objects. + * + * @param contentMetadataKeyHierarchies the hierarchies to update + * @return the updated hierarchies + * @throws ApiException if there is an error updating the one of the hierarchies + */ + public function updateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies) { + $args = new UpdateContentMetadataKeyHierarchies($contentMetadataKeyHierarchies); + $result = $this->__soapCall("updateContentMetadataKeyHierarchies", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ContentService.php b/src/Google/Api/Ads/Dfp/v201505/ContentService.php new file mode 100755 index 000000000..776954b63 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ContentService.php @@ -0,0 +1,2948 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CmsContent", false)) { + /** + * Contains information about {@link Content} from the CMS it was ingested from. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CmsContent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $displayName = null, $cmsContentId = null) { + $this->id = $id; + $this->displayName = $displayName; + $this->cmsContentId = $cmsContentId; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class Content { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 $importDateTime; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $status = null, $statusDefinedBy = null, $importDateTime = null, $lastModifiedDateTime = null, $userDefinedCustomTargetingValueIds = null, $mappingRuleDefinedCustomTargetingValueIds = null, $cmsSources = null) { + $this->id = $id; + $this->name = $name; + $this->status = $status; + $this->statusDefinedBy = $statusDefinedBy; + $this->importDateTime = $importDateTime; + $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 v201505 + */ + class ContentPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentPartnerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentPartnerError"; + + /** + * @access public + * @var tnsContentPartnerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentPartnerErrorReason", false)) { + /** + * Describes reason for {@code ContentPartnerError}s. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentPartnerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentPartnerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentStatus", false)) { + /** + * Describes the status of a {@link Content} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentStatusDefinedBy", false)) { + /** + * Describes who defined the effective status of the {@code Content}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentStatusDefinedBy { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentStatusDefinedBy"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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}
    {@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}
    + * + * @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 v201505 + */ + class GetContentByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetContentByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetContentByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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}
    {@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}
    + * + * @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 v201505 + */ + class GetContentByStatementAndCustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null, $customTargetingValueId = null) { + $this->filterStatement = $filterStatement; + $this->customTargetingValueId = $customTargetingValueId; + } + + } +} + +if (!class_exists("GetContentByStatementAndCustomTargetingValueResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetContentByStatementAndCustomTargetingValueResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ContentPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ContentService", false)) { + /** + * ContentService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentService extends DfpSoapClient { + + const SERVICE_NAME = "ContentService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ContentService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ContentService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CmsContent" => "CmsContent", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Content" => "Content", + "ContentPage" => "ContentPage", + "ContentPartnerError" => "ContentPartnerError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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}
    {@code lastModifiedDateTime}{@link Content#lastModifiedDateTime}
    + * + * @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) { + $args = new GetContentByStatement($statement); + $result = $this->__soapCall("getContentByStatement", array($args)); + 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}
    {@code lastModifiedDateTime}{@link Content#lastModifiedDateTime>}
    + * + * @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) { + $args = new GetContentByStatementAndCustomTargetingValue($filterStatement, $customTargetingValueId); + $result = $this->__soapCall("getContentByStatementAndCustomTargetingValue", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CreativeService.php b/src/Google/Api/Ads/Dfp/v201505/CreativeService.php new file mode 100755 index 000000000..7d712c781 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CreativeService.php @@ -0,0 +1,8645 @@ +uniqueName = $uniqueName; + } + + } +} + +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AssetCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetCreativeTemplateVariableValue"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($assetId = null, $assetByteArray = null, $fileName = null, $uniqueName = null) { + parent::__construct(); + $this->assetId = $assetId; + $this->assetByteArray = $assetByteArray; + $this->fileName = $fileName; + $this->uniqueName = $uniqueName; + } + + } +} + +if (!class_exists("Asset", false)) { + /** + * Base asset properties. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Asset"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AssetError", false)) { + /** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError"; + + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ConversionEvent_TrackingUrlsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomCreativeAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError"; + + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Creative", false)) { + /** + * A {@code Creative} represents the media for the ad being served. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativePage", false)) { + /** + * Captures a page of {@link Creative} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError"; + + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomCreativeError", false)) { + /** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError"; + + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FileError", false)) { + /** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError"; + + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("HasDestinationUrlCreative", false)) { + /** + * A {@code Creative} that has a destination url + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class HasDestinationUrlCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "HasDestinationUrlCreative"; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var tnsDestinationUrlType + */ + public $destinationUrlType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($destinationUrl = null, $destinationUrlType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class InternalRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalRedirectCreative"; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var Size + */ + public $assetSize; + + /** + * @access public + * @var string + */ + public $internalRedirectUrl; + + /** + * @access public + * @var boolean + */ + public $overrideSize; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lockedOrientation = null, $assetSize = null, $internalRedirectUrl = null, $overrideSize = null, $isInterstitial = null, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->lockedOrientation = $lockedOrientation; + $this->assetSize = $assetSize; + $this->internalRedirectUrl = $internalRedirectUrl; + $this->overrideSize = $overrideSize; + $this->isInterstitial = $isInterstitial; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("InvalidPhoneNumberError", false)) { + /** + * Lists all errors associated with phone numbers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError"; + + /** + * @access public + * @var tnsInvalidPhoneNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class LegacyDfpCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LegacyDfpCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LongCreativeTemplateVariableValue", false)) { + /** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#LONG}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LongCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LongCreativeTemplateVariableValue"; + + /** + * @access public + * @var integer + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $uniqueName = null) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticCreative", false)) { + /** + * A {@code Creative} used for programmatic trafficking. This creative will be auto-created with + * the right approval from the buyer. This creative cannot be created through + * the API. This creative can be updated. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RedirectAsset", false)) { + /** + * An externally hosted asset. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RedirectAsset extends Asset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RedirectAsset"; + + /** + * @access public + * @var string + */ + public $redirectUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($redirectUrl = null) { + parent::__construct(); + $this->redirectUrl = $redirectUrl; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RichMediaStudioChildAssetProperty", false)) { + /** + * Represents a child asset in {@code RichMediaStudioCreative}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioChildAssetProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError"; + + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxCreativeError", false)) { + /** + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError"; + + /** + * @access public + * @var tnsSetTopBoxCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringCreativeTemplateVariableValue", false)) { + /** + * Stores values of {@link CreativeTemplateVariable} of + * {@link VariableType#STRING} and {@link VariableType#LIST}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringCreativeTemplateVariableValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $uniqueName = null) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError"; + + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SwiffyFallbackAsset", false)) { + /** + * A fallback swiffy asset used for flash creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SwiffyFallbackAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TemplateCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateCreative"; + + /** + * @access public + * @var integer + */ + public $creativeTemplateId; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + + /** + * @access public + * @var string + */ + public $destinationUrl; + + /** + * @access public + * @var BaseCreativeTemplateVariableValue[] + */ + public $creativeTemplateVariableValues; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeTemplateId = null, $isInterstitial = null, $isNativeEligible = null, $destinationUrl = null, $creativeTemplateVariableValues = null, $sslScanResult = null, $sslManualOverride = null, $lockedOrientation = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->creativeTemplateId = $creativeTemplateId; + $this->isInterstitial = $isInterstitial; + $this->isNativeEligible = $isNativeEligible; + $this->destinationUrl = $destinationUrl; + $this->creativeTemplateVariableValues = $creativeTemplateVariableValues; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->lockedOrientation = $lockedOrientation; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeError", false)) { + /** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError"; + + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ThirdPartyCreative", false)) { + /** + * A {@code Creative} that is served by a 3rd-party vendor. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ThirdPartyCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ThirdPartyCreative"; + + /** + * @access public + * @var string + */ + public $snippet; + + /** + * @access public + * @var string + */ + public $expandedSnippet; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($snippet = null, $expandedSnippet = null, $sslScanResult = null, $sslManualOverride = null, $lockedOrientation = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->snippet = $snippet; + $this->expandedSnippet = $expandedSnippet; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->lockedOrientation = $lockedOrientation; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("TrackingUrls", false)) { + /** + * A list of URLs that should be pinged for a conversion event. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TrackingUrls { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TrackingUrls"; + + /** + * @access public + * @var string[] + */ + public $urls; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($urls = null) { + $this->urls = $urls; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class UnsupportedCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnsupportedCreative"; + + /** + * @access public + * @var string + */ + public $unsupportedCreativeType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($unsupportedCreativeType = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("UrlCreativeTemplateVariableValue", false)) { + /** + * Stores values of {@link CreativeTemplateVariable} of {@link VariableType#URL}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UrlCreativeTemplateVariableValue extends BaseCreativeTemplateVariableValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UrlCreativeTemplateVariableValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $uniqueName = null) { + parent::__construct(); + $this->value = $value; + $this->uniqueName = $uniqueName; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VastRedirectCreative", false)) { + /** + * A {@code Creative} that points to an externally hosted VAST ad and is + * served via VAST XML as a VAST Wrapper. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VastRedirectCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VastRedirectCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($vastXmlUrl = null, $vastRedirectType = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null) { + parent::__construct(); + $this->vastXmlUrl = $vastXmlUrl; + $this->vastRedirectType = $vastRedirectType; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("VideoMetadata", false)) { + /** + * Metadata for a video asset. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoMetadata { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoMetadata"; + + /** + * @access public + * @var tnsScalableType + */ + public $scalableType; + + /** + * @access public + * @var integer + */ + public $duration; + + /** + * @access public + * @var integer + */ + public $bitRate; + + /** + * @access public + * @var integer + */ + public $minimumBitRate; + + /** + * @access public + * @var integer + */ + public $maximumBitRate; + + /** + * @access public + * @var Size + */ + public $size; + + /** + * @access public + * @var tnsMimeType + */ + public $mimeType; + + /** + * @access public + * @var tnsVideoDeliveryType + */ + public $deliveryType; + + /** + * @access public + * @var string[] + */ + public $codecs; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($scalableType = null, $duration = null, $bitRate = null, $minimumBitRate = null, $maximumBitRate = null, $size = null, $mimeType = null, $deliveryType = null, $codecs = null) { + $this->scalableType = $scalableType; + $this->duration = $duration; + $this->bitRate = $bitRate; + $this->minimumBitRate = $minimumBitRate; + $this->maximumBitRate = $maximumBitRate; + $this->size = $size; + $this->mimeType = $mimeType; + $this->deliveryType = $deliveryType; + $this->codecs = $codecs; + } + + } +} + +if (!class_exists("VideoRedirectAsset", false)) { + /** + * An externally-hosted video asset. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoRedirectAsset extends RedirectAsset { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoRedirectAsset"; + + /** + * @access public + * @var VideoMetadata + */ + public $metadata; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($metadata = null, $redirectUrl = null) { + parent::__construct(); + $this->metadata = $metadata; + $this->redirectUrl = $redirectUrl; + } + + } +} + +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 v201505 + */ + class VpaidLinearCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VpaidLinearCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($flashName = null, $flashByteArray = null, $overrideSize = null, $flashAssetSize = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +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 v201505 + */ + class VpaidLinearRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VpaidLinearRedirectCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $duration = null, $flashUrl = null, $flashAssetSize = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("ApiFramework", false)) { + /** + * The various ApiFramework types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiFramework { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiFramework"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AssetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ConversionEvent", false)) { + /** + * All possible tracking event types. Not all events are supported by every + * kind of creative. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ConversionEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ConversionEvent"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeAssetMacroErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeSetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DestinationUrlType", false)) { + /** + * The valid actions that a destination URL may perform if the user clicks on the ad. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DestinationUrlType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DestinationUrlType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FileErrorReason", false)) { + /** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Html5Feature", false)) { + /** + * An HTML5 features required by HTML5 assets. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Html5Feature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Html5Feature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageDensity", false)) { + /** + * Image densities. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageDensity { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageDensity"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidPhoneNumberErrorReason", false)) { + /** + * The phone number is invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LockedOrientation", false)) { + /** + * Describes the orientation that a creative should be served with. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LockedOrientation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LockedOrientation"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MimeType", false)) { + /** + * Enum of supported mime types + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioChildAssetPropertyType", false)) { + /** + * Type of {@code RichMediaStudioChildAssetProperty} + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioChildAssetPropertyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioChildAssetProperty.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioCreativeArtworkType", false)) { + /** + * Rich Media Studio creative artwork types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeArtworkType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeArtworkType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RichMediaStudioCreativeBillingAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeBillingAttribute"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioCreativeFormat", false)) { + /** + * Different creative format supported by Rich Media Studio creative. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeFormat"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ScalableType", false)) { + /** + * The different ways a video/flash can scale. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ScalableType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ScalableType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { + /** + * Error reasons for set-top box creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SslManualOverride", false)) { + /** + * Enum to store the creative SSL compatibility manual override. + * Its three states are similar to that of {@link SslScanResult}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SslManualOverride { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SslManualOverride"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SslScanResult", false)) { + /** + * Enum to store the creative SSL compatibility scan result. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SslScanResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SslScanResult"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SwiffyConversionErrorReason", false)) { + /** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { + /** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VastRedirectType", false)) { + /** + * The types of VAST ads that a {@link VastRedirectCreative} can point to. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VastRedirectType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VastRedirectType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoDeliveryType", false)) { + /** + * The video delivery type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoDeliveryType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoDeliveryType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creatives = null) { + $this->creatives = $creatives; + } + + } +} + +if (!class_exists("CreateCreativesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCreativesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCreativesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCreativesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateCreatives", false)) { + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCreatives { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Creative[] + */ + public $creatives; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creatives = null) { + $this->creatives = $creatives; + } + + } +} + +if (!class_exists("UpdateCreativesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCreativesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Creative[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("BaseDynamicAllocationCreative", false)) { + /** + * A base class for dynamic allocation creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseDynamicAllocationCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseDynamicAllocationCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdMobBackfillCreative", false)) { + /** + * An AdMob backfill creative. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdMobBackfillCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdMobBackfillCreative"; + + /** + * @access public + * @var string + */ + public $additionalParameters; + + /** + * @access public + * @var string + */ + public $publisherId; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($additionalParameters = null, $publisherId = null, $lockedOrientation = null) { + parent::__construct(); + $this->additionalParameters = $additionalParameters; + $this->publisherId = $publisherId; + $this->lockedOrientation = $lockedOrientation; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AspectRatioImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AspectRatioImageCreative"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($imageAssets = null, $altText = null, $thirdPartyImpressionUrl = null, $overrideSize = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->imageAssets = $imageAssets; + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->overrideSize = $overrideSize; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +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 v201505 + */ + class BaseFlashCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseFlashCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +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 v201505 + */ + class BaseFlashRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseFlashRedirectCreative"; + + /** + * @access public + * @var string + */ + public $flashUrl; + + /** + * @access public + * @var string + */ + public $fallbackUrl; + + /** + * @access public + * @var string + */ + public $fallbackPreviewUrl; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("BaseImageCreative", false)) { + /** + * The base type for creatives that display an image. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseImageCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseImageCreative"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($overrideSize = null, $primaryImageAsset = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("BaseImageRedirectCreative", false)) { + /** + * The base type for creatives that load an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseImageRedirectCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseImageRedirectCreative"; + + /** + * @access public + * @var string + */ + public $imageUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($imageUrl = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->imageUrl = $imageUrl; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("BaseRichMediaStudioCreative", false)) { + /** + * A {@code Creative} that is created by a Rich Media Studio. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRichMediaStudioCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRichMediaStudioCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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, $sslScanResult = null, $sslManualOverride = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->advertiserId = $advertiserId; + $this->id = $id; + $this->name = $name; + $this->size = $size; + $this->previewUrl = $previewUrl; + $this->appliedLabels = $appliedLabels; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("BaseVideoCreative", false)) { + /** + * A base type for video creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseVideoCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseVideoCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class ClickTrackingCreative extends Creative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingCreative"; + + /** + * @access public + * @var string + */ + public $clickTrackingUrl; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = 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; + } + + } +} + +if (!class_exists("CustomCreative", false)) { + /** + * A {@code Creative} that contains an arbitrary HTML snippet and file assets. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreative"; + + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * @access public + * @var CustomCreativeAsset[] + */ + public $customCreativeAssets; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var tnsSslScanResult + */ + public $sslScanResult; + + /** + * @access public + * @var tnsSslManualOverride + */ + public $sslManualOverride; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($htmlSnippet = null, $customCreativeAssets = null, $isInterstitial = null, $lockedOrientation = null, $sslScanResult = null, $sslManualOverride = null, $destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->htmlSnippet = $htmlSnippet; + $this->customCreativeAssets = $customCreativeAssets; + $this->isInterstitial = $isInterstitial; + $this->lockedOrientation = $lockedOrientation; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class LegacyDfpMobileCreative extends HasDestinationUrlCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LegacyDfpMobileCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($destinationUrl = null, $destinationUrlType = null) { + parent::__construct(); + $this->destinationUrl = $destinationUrl; + $this->destinationUrlType = $destinationUrlType; + } + + } +} + +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 v201505 + */ + class FlashCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FlashCreative"; + + /** + * @access public + * @var SwiffyFallbackAsset + */ + public $swiffyAsset; + + /** + * @access public + * @var boolean + */ + public $createSwiffyAsset; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var boolean + */ + public $clickTagOverlayEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($swiffyAsset = null, $createSwiffyAsset = null, $lockedOrientation = null, $clickTagOverlayEnabled = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->swiffyAsset = $swiffyAsset; + $this->createSwiffyAsset = $createSwiffyAsset; + $this->lockedOrientation = $lockedOrientation; + $this->clickTagOverlayEnabled = $clickTagOverlayEnabled; + $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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +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 v201505 + */ + class FlashOverlayCreative extends BaseFlashCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FlashOverlayCreative"; + + /** + * @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; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $vastPreviewUrl = null, $lockedOrientation = null, $flashName = null, $flashByteArray = null, $fallbackImageName = null, $fallbackImageByteArray = null, $overrideSize = null, $clickTagRequired = null, $fallbackPreviewUrl = null, $flashAssetSize = null, $fallbackAssetSize = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->apiFramework = $apiFramework; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->lockedOrientation = $lockedOrientation; + $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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +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 v201505 + */ + class FlashRedirectCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FlashRedirectCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->flashUrl = $flashUrl; + $this->fallbackUrl = $fallbackUrl; + $this->fallbackPreviewUrl = $fallbackPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +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 v201505 + */ + class FlashRedirectOverlayCreative extends BaseFlashRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FlashRedirectOverlayCreative"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $apiFramework = null, $duration = null, $flashAssetSize = null, $vastPreviewUrl = null, $flashUrl = null, $fallbackUrl = null, $fallbackPreviewUrl = null, $sslScanResult = null, $sslManualOverride = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +if (!class_exists("HasHtmlSnippetDynamicAllocationCreative", false)) { + /** + * Dynamic allocation creative with a backfill code snippet. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class HasHtmlSnippetDynamicAllocationCreative extends BaseDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "HasHtmlSnippetDynamicAllocationCreative"; + + /** + * @access public + * @var string + */ + public $codeSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($codeSnippet = null) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + } + + } +} + +if (!class_exists("ImageCreative", false)) { + /** + * A {@code Creative} that displays an image. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageCreative"; + + /** + * @access public + * @var string + */ + public $altText; + + /** + * @access public + * @var string + */ + public $thirdPartyImpressionUrl; + + /** + * @access public + * @var CreativeAsset[] + */ + public $secondaryImageAssets; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($altText = null, $thirdPartyImpressionUrl = null, $secondaryImageAssets = null, $lockedOrientation = null, $overrideSize = null, $primaryImageAsset = null) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->secondaryImageAssets = $secondaryImageAssets; + $this->lockedOrientation = $lockedOrientation; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + } + + } +} + +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 v201505 + */ + class ImageOverlayCreative extends BaseImageCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageOverlayCreative"; + + /** + * @access public + * @var integer[] + */ + public $companionCreativeIds; + + /** + * @access public + * @var ConversionEvent_TrackingUrlsMapEntry[] + */ + public $trackingUrls; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($companionCreativeIds = null, $trackingUrls = null, $lockedOrientation = null, $customParameters = null, $duration = null, $vastPreviewUrl = null, $overrideSize = null, $primaryImageAsset = null) { + parent::__construct(); + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->lockedOrientation = $lockedOrientation; + $this->customParameters = $customParameters; + $this->duration = $duration; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->overrideSize = $overrideSize; + $this->primaryImageAsset = $primaryImageAsset; + } + + } +} + +if (!class_exists("ImageRedirectCreative", false)) { + /** + * A {@code Creative} that loads an image asset from a specified URL. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageRedirectCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageRedirectCreative"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($altText = null, $thirdPartyImpressionUrl = null, $imageUrl = null) { + parent::__construct(); + $this->altText = $altText; + $this->thirdPartyImpressionUrl = $thirdPartyImpressionUrl; + $this->imageUrl = $imageUrl; + } + + } +} + +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 v201505 + */ + class ImageRedirectOverlayCreative extends BaseImageRedirectCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageRedirectOverlayCreative"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($assetSize = null, $duration = null, $companionCreativeIds = null, $trackingUrls = null, $customParameters = null, $vastPreviewUrl = null, $imageUrl = null) { + parent::__construct(); + $this->assetSize = $assetSize; + $this->duration = $duration; + $this->companionCreativeIds = $companionCreativeIds; + $this->trackingUrls = $trackingUrls; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->imageUrl = $imageUrl; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class RichMediaStudioCreative extends BaseRichMediaStudioCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreative"; + + /** + * @access public + * @var tnsLockedOrientation + */ + public $lockedOrientation; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lockedOrientation = null, $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, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->lockedOrientation = $lockedOrientation; + $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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +if (!class_exists("SetTopBoxCreative", false)) { + /** + * A {@code Creative} that will be served into cable set-top boxes. There are no assets for this + * creative type, as they are hosted by Canoe. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreative"; + + /** + * @access public + * @var string + */ + public $externalAssetId; + + /** + * @access public + * @var string + */ + public $providerId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($externalAssetId = null, $providerId = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->externalAssetId = $externalAssetId; + $this->providerId = $providerId; + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class VideoCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = null) { + parent::__construct(); + $this->duration = $duration; + $this->allowDurationOverride = $allowDurationOverride; + $this->trackingUrls = $trackingUrls; + $this->companionCreativeIds = $companionCreativeIds; + $this->customParameters = $customParameters; + $this->vastPreviewUrl = $vastPreviewUrl; + $this->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +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 in versions + * V201408 and lower. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoRedirectCreative extends BaseVideoCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoRedirectCreative"; + + /** + * @access public + * @var VideoRedirectAsset[] + */ + public $videoAssets; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($videoAssets = null, $duration = null, $allowDurationOverride = null, $trackingUrls = null, $companionCreativeIds = null, $customParameters = null, $vastPreviewUrl = null, $sslScanResult = null, $sslManualOverride = 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->sslScanResult = $sslScanResult; + $this->sslManualOverride = $sslManualOverride; + } + + } +} + +if (!class_exists("AdExchangeCreative", false)) { + /** + * An Ad Exchange dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdExchangeCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdExchangeCreative"; + + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isNativeEligible = null, $isInterstitial = null, $codeSnippet = null) { + parent::__construct(); + $this->isNativeEligible = $isNativeEligible; + $this->isInterstitial = $isInterstitial; + $this->codeSnippet = $codeSnippet; + } + + } +} + +if (!class_exists("AdSenseCreative", false)) { + /** + * An AdSense dynamic allocation creative. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseCreative extends HasHtmlSnippetDynamicAllocationCreative { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseCreative"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($codeSnippet = null) { + parent::__construct(); + $this->codeSnippet = $codeSnippet; + } + + } +} + +if (!class_exists("CreativeService", false)) { + /** + * CreativeService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CreativeService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CreativeService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "BaseDynamicAllocationCreative" => "BaseDynamicAllocationCreative", + "BaseCreativeTemplateVariableValue" => "BaseCreativeTemplateVariableValue", + "ObjectValue" => "ObjectValue", + "AdExchangeCreative" => "AdExchangeCreative", + "AdMobBackfillCreative" => "AdMobBackfillCreative", + "AdSenseCreative" => "AdSenseCreative", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "AspectRatioImageCreative" => "AspectRatioImageCreative", + "AssetCreativeTemplateVariableValue" => "AssetCreativeTemplateVariableValue", + "Asset" => "Asset", + "AssetError" => "AssetError", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseFlashCreative" => "BaseFlashCreative", + "BaseFlashRedirectCreative" => "BaseFlashRedirectCreative", + "BaseImageCreative" => "BaseImageCreative", + "BaseImageRedirectCreative" => "BaseImageRedirectCreative", + "BaseRichMediaStudioCreative" => "BaseRichMediaStudioCreative", + "BaseVideoCreative" => "BaseVideoCreative", + "BooleanValue" => "BooleanValue", + "ClickTrackingCreative" => "ClickTrackingCreative", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ConversionEvent_TrackingUrlsMapEntry" => "ConversionEvent_TrackingUrlsMapEntry", + "CreativeAsset" => "CreativeAsset", + "CustomCreativeAsset" => "CustomCreativeAsset", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "Creative" => "Creative", + "CreativeError" => "CreativeError", + "CreativePage" => "CreativePage", + "CreativeSetError" => "CreativeSetError", + "CustomCreative" => "CustomCreative", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "LegacyDfpMobileCreative" => "LegacyDfpMobileCreative", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "FlashCreative" => "FlashCreative", + "FlashOverlayCreative" => "FlashOverlayCreative", + "FlashRedirectCreative" => "FlashRedirectCreative", + "FlashRedirectOverlayCreative" => "FlashRedirectOverlayCreative", + "HasDestinationUrlCreative" => "HasDestinationUrlCreative", + "HasHtmlSnippetDynamicAllocationCreative" => "HasHtmlSnippetDynamicAllocationCreative", + "ImageCreative" => "ImageCreative", + "ImageError" => "ImageError", + "ImageOverlayCreative" => "ImageOverlayCreative", + "ImageRedirectCreative" => "ImageRedirectCreative", + "ImageRedirectOverlayCreative" => "ImageRedirectOverlayCreative", + "InternalApiError" => "InternalApiError", + "InternalRedirectCreative" => "InternalRedirectCreative", + "InvalidPhoneNumberError" => "InvalidPhoneNumberError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LegacyDfpCreative" => "LegacyDfpCreative", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LongCreativeTemplateVariableValue" => "LongCreativeTemplateVariableValue", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "ProgrammaticCreative" => "ProgrammaticCreative", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RedirectAsset" => "RedirectAsset", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioChildAssetProperty" => "RichMediaStudioChildAssetProperty", + "RichMediaStudioCreative" => "RichMediaStudioCreative", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "SetTopBoxCreative" => "SetTopBoxCreative", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", + "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", + "Value" => "Value", + "VastRedirectCreative" => "VastRedirectCreative", + "VideoCreative" => "VideoCreative", + "VideoMetadata" => "VideoMetadata", + "VideoRedirectAsset" => "VideoRedirectAsset", + "VideoRedirectCreative" => "VideoRedirectCreative", + "VpaidLinearCreative" => "VpaidLinearCreative", + "VpaidLinearRedirectCreative" => "VpaidLinearRedirectCreative", + "ApiFramework" => "ApiFramework", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "ConversionEvent" => "ConversionEvent", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "DestinationUrlType" => "DestinationUrlType", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "Html5Feature" => "Html5Feature", + "ImageDensity" => "ImageDensity", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LockedOrientation" => "LockedOrientation", + "MimeType" => "MimeType", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "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", + "RichMediaStudioChildAssetProperty.Type" => "RichMediaStudioChildAssetPropertyType", + "RichMediaStudioCreativeArtworkType" => "RichMediaStudioCreativeArtworkType", + "RichMediaStudioCreativeBillingAttribute" => "RichMediaStudioCreativeBillingAttribute", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "RichMediaStudioCreativeFormat" => "RichMediaStudioCreativeFormat", + "ScalableType" => "ScalableType", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", + "SslManualOverride" => "SslManualOverride", + "SslScanResult" => "SslScanResult", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "VastRedirectType" => "VastRedirectType", + "VideoDeliveryType" => "VideoDeliveryType", + "createCreatives" => "CreateCreatives", + "createCreativesResponse" => "CreateCreativesResponse", + "getCreativesByStatement" => "GetCreativesByStatement", + "getCreativesByStatementResponse" => "GetCreativesByStatementResponse", + "updateCreatives" => "UpdateCreatives", + "updateCreativesResponse" => "UpdateCreativesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Creative} objects. + * + * @param creatives the creatives to create + * @return the created creatives with their IDs filled in + */ + public function createCreatives($creatives) { + $args = new CreateCreatives($creatives); + $result = $this->__soapCall("createCreatives", array($args)); + 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) { + $args = new GetCreativesByStatement($filterStatement); + $result = $this->__soapCall("getCreativesByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Creative} objects. + * + * @param creatives the creatives to update + * @return the updated creatives + */ + public function updateCreatives($creatives) { + $args = new UpdateCreatives($creatives); + $result = $this->__soapCall("updateCreatives", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CreativeSetService.php b/src/Google/Api/Ads/Dfp/v201505/CreativeSetService.php new file mode 100755 index 000000000..76778443a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CreativeSetService.php @@ -0,0 +1,4407 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AssetError", false)) { + /** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError"; + + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeAssetMacroError", false)) { + /** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError"; + + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeSet", false)) { + /** + * A creative set is comprised of a master creative and its companion creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError"; + + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeSetPage", false)) { + /** + * Captures a page of {@link CreativeSet} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("CreativeTemplateError", false)) { + /** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateError"; + + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomCreativeError", false)) { + /** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError"; + + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FileError", false)) { + /** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError"; + + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidPhoneNumberError", false)) { + /** + * Lists all errors associated with phone numbers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError"; + + /** + * @access public + * @var tnsInvalidPhoneNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RichMediaStudioCreativeError", false)) { + /** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError"; + + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxCreativeError", false)) { + /** + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError"; + + /** + * @access public + * @var tnsSetTopBoxCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError"; + + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeError", false)) { + /** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError"; + + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AssetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeAssetMacroErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeSetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeTemplateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FileErrorReason", false)) { + /** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidPhoneNumberErrorReason", false)) { + /** + * The phone number is invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { + /** + * Error reasons for set-top box creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SwiffyConversionErrorReason", false)) { + /** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { + /** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeSet = null) { + $this->creativeSet = $creativeSet; + } + + } +} + +if (!class_exists("CreateCreativeSetResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCreativeSetsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetCreativeSetsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCreativeSetsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeSetPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateCreativeSet", false)) { + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCreativeSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeSet + */ + public $creativeSet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeSet = null) { + $this->creativeSet = $creativeSet; + } + + } +} + +if (!class_exists("UpdateCreativeSetResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCreativeSetResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CreativeSetService", false)) { + /** + * CreativeSetService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeSetService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CreativeSetService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CreativeSetService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AssetError" => "AssetError", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativeSet" => "CreativeSet", + "CreativeSetError" => "CreativeSetError", + "CreativeSetPage" => "CreativeSetPage", + "CreativeTemplateError" => "CreativeTemplateError", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidPhoneNumberError" => "InvalidPhoneNumberError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SwiffyConversionError" => "SwiffyConversionError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CreativeTemplateError.Reason" => "CreativeTemplateErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", + "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", + "RangeError.Reason" => "RangeErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "RequiredSizeError.Reason" => "RequiredSizeErrorReason", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createCreativeSet" => "CreateCreativeSet", + "createCreativeSetResponse" => "CreateCreativeSetResponse", + "getCreativeSetsByStatement" => "GetCreativeSetsByStatement", + "getCreativeSetsByStatementResponse" => "GetCreativeSetsByStatementResponse", + "updateCreativeSet" => "UpdateCreativeSet", + "updateCreativeSetResponse" => "UpdateCreativeSetResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateCreativeSet($creativeSet); + $result = $this->__soapCall("createCreativeSet", array($args)); + 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) { + $args = new GetCreativeSetsByStatement($statement); + $result = $this->__soapCall("getCreativeSetsByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link CreativeSet}. + * + * @param creativeSet the creative set to update + * @return the updated creative set + */ + public function updateCreativeSet($creativeSet) { + $args = new UpdateCreativeSet($creativeSet); + $result = $this->__soapCall("updateCreativeSet", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CreativeTemplateService.php b/src/Google/Api/Ads/Dfp/v201505/CreativeTemplateService.php new file mode 100755 index 000000000..ba750d756 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CreativeTemplateService.php @@ -0,0 +1,3368 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeTemplate", false)) { + /** + * A template upon which a creative can be created. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 string + */ + public $snippet; + + /** + * @access public + * @var tnsCreativeTemplateStatus + */ + public $status; + + /** + * @access public + * @var tnsCreativeTemplateType + */ + public $type; + + /** + * @access public + * @var boolean + */ + public $isInterstitial; + + /** + * @access public + * @var boolean + */ + public $isNativeEligible; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $description = null, $variables = null, $snippet = null, $status = null, $type = null, $isInterstitial = null, $isNativeEligible = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->variables = $variables; + $this->snippet = $snippet; + $this->status = $status; + $this->type = $type; + $this->isInterstitial = $isInterstitial; + $this->isNativeEligible = $isNativeEligible; + } + + } +} + +if (!class_exists("CreativeTemplateError", false)) { + /** + * A catch-all error that lists all generic errors associated with CreativeTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateError"; + + /** + * @access public + * @var tnsCreativeTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ListStringCreativeTemplateVariableVariableChoice", false)) { + /** + * Stores variable choices that users can select from + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ListStringCreativeTemplateVariableVariableChoice { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ListStringCreativeTemplateVariable.VariableChoice"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativeTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($label = null, $uniqueName = null, $description = null, $isRequired = null) { + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AssetCreativeTemplateVariableMimeType", false)) { + /** + * Different mime type that the asset variable supports. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetCreativeTemplateVariableMimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetCreativeTemplateVariable.MimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeTemplateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeTemplateStatus", false)) { + /** + * Describes status of the creative template + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeTemplateType", false)) { + /** + * Describes type of the creative template. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeTemplateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCreativeTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCreativeTemplatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCreativeTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class AssetCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetCreativeTemplateVariable"; + + /** + * @access public + * @var tnsAssetCreativeTemplateVariableMimeType[] + */ + public $mimeTypes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mimeTypes = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { + parent::__construct(); + $this->mimeTypes = $mimeTypes; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + } + + } +} + +if (!class_exists("LongCreativeTemplateVariable", false)) { + /** + * Represents a long variable defined in a creative template. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LongCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LongCreativeTemplateVariable"; + + /** + * @access public + * @var integer + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + } + + } +} + +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 v201505 + */ + class StringCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringCreativeTemplateVariable"; + + /** + * @access public + * @var string + */ + public $defaultValue; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($defaultValue = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + } + + } +} + +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 v201505 + */ + class UrlCreativeTemplateVariable extends CreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UrlCreativeTemplateVariable"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($defaultValue = null, $isTrackingUrl = null, $label = null, $uniqueName = null, $description = null, $isRequired = null) { + parent::__construct(); + $this->defaultValue = $defaultValue; + $this->isTrackingUrl = $isTrackingUrl; + $this->label = $label; + $this->uniqueName = $uniqueName; + $this->description = $description; + $this->isRequired = $isRequired; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 a {@link TemplateCreative} from a {@link CreativeTemplate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ListStringCreativeTemplateVariable"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($choices = null, $allowOtherChoice = null, $defaultValue = null) { + parent::__construct(); + $this->choices = $choices; + $this->allowOtherChoice = $allowOtherChoice; + $this->defaultValue = $defaultValue; + } + + } +} + +if (!class_exists("CreativeTemplateService", false)) { + /** + * CreativeTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CreativeTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CreativeTemplateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "AssetCreativeTemplateVariable" => "AssetCreativeTemplateVariable", + "CreativeTemplate" => "CreativeTemplate", + "CreativeTemplateError" => "CreativeTemplateError", + "ListStringCreativeTemplateVariable" => "ListStringCreativeTemplateVariable", + "ListStringCreativeTemplateVariable.VariableChoice" => "ListStringCreativeTemplateVariableVariableChoice", + "LongCreativeTemplateVariable" => "LongCreativeTemplateVariable", + "CreativeTemplatePage" => "CreativeTemplatePage", + "StringCreativeTemplateVariable" => "StringCreativeTemplateVariable", + "UrlCreativeTemplateVariable" => "UrlCreativeTemplateVariable", + "CreativeTemplateVariable" => "CreativeTemplateVariable", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getCreativeTemplatesByStatement" => "GetCreativeTemplatesByStatement", + "getCreativeTemplatesByStatementResponse" => "GetCreativeTemplatesByStatementResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetCreativeTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getCreativeTemplatesByStatement", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CreativeWrapperService.php b/src/Google/Api/Ads/Dfp/v201505/CreativeWrapperService.php new file mode 100755 index 000000000..b37d13791 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CreativeWrapperService.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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeWrapperAction", false)) { + /** + * Represents the actions that can be performed on {@link CreativeWrapper} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeWrapper { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError"; + + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeWrapperPage", false)) { + /** + * Captures a page of {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeactivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateCreativeWrappers"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeWrapperHtmlSnippet", false)) { + /** + * The {@code CreativeWrapperHtmlSnippet} contains the HTML snippet that is + * delivered as the header or footer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperHtmlSnippet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperHtmlSnippet"; + + /** + * @access public + * @var string + */ + public $htmlSnippet; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelError", false)) { + /** + * Errors specific to labels. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelError"; + + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeWrapperErrorReason", false)) { + /** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeWrapperOrdering { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperOrdering"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeWrapperStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeWrappers = null) { + $this->creativeWrappers = $creativeWrappers; + } + + } +} + +if (!class_exists("CreateCreativeWrappersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCreativeWrappersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCreativeWrappersByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCreativeWrappersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeWrapperPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformCreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeWrapperAction = null, $filterStatement = null) { + $this->creativeWrapperAction = $creativeWrapperAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformCreativeWrapperActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformCreativeWrapperActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateCreativeWrappers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $creativeWrappers; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($creativeWrappers = null) { + $this->creativeWrappers = $creativeWrappers; + } + + } +} + +if (!class_exists("UpdateCreativeWrappersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCreativeWrappersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CreativeWrapper[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCreativeWrappers", false)) { + /** + * The action used for activating {@link CreativeWrapper} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateCreativeWrappers extends CreativeWrapperAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateCreativeWrappers"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CreativeWrapperService", false)) { + /** + * CreativeWrapperService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperService extends DfpSoapClient { + + const SERVICE_NAME = "CreativeWrapperService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CreativeWrapperService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CreativeWrapperService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateCreativeWrappers" => "ActivateCreativeWrappers", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreativeWrapperAction" => "CreativeWrapperAction", + "CreativeWrapper" => "CreativeWrapper", + "CreativeWrapperError" => "CreativeWrapperError", + "CreativeWrapperPage" => "CreativeWrapperPage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createCreativeWrappers" => "CreateCreativeWrappers", + "createCreativeWrappersResponse" => "CreateCreativeWrappersResponse", + "getCreativeWrappersByStatement" => "GetCreativeWrappersByStatement", + "getCreativeWrappersByStatementResponse" => "GetCreativeWrappersByStatementResponse", + "performCreativeWrapperAction" => "PerformCreativeWrapperAction", + "performCreativeWrapperActionResponse" => "PerformCreativeWrapperActionResponse", + "updateCreativeWrappers" => "UpdateCreativeWrappers", + "updateCreativeWrappersResponse" => "UpdateCreativeWrappersResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("createCreativeWrappers", array($args)); + 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) { + $args = new GetCreativeWrappersByStatement($filterStatement); + $result = $this->__soapCall("getCreativeWrappersByStatement", array($args)); + 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) { + $args = new PerformCreativeWrapperAction($creativeWrapperAction, $filterStatement); + $result = $this->__soapCall("performCreativeWrapperAction", array($args)); + 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) { + $args = new UpdateCreativeWrappers($creativeWrappers); + $result = $this->__soapCall("updateCreativeWrappers", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CustomFieldService.php b/src/Google/Api/Ads/Dfp/v201505/CustomFieldService.php new file mode 100755 index 000000000..a0edce1ab --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CustomFieldService.php @@ -0,0 +1,3626 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomFieldAction", false)) { + /** + * Represents the actions that can be performed on {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomField", false)) { + /** + * An additional, user-created field on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->isActive = $isActive; + $this->entityType = $entityType; + $this->dataType = $dataType; + $this->visibility = $visibility; + } + + } +} + +if (!class_exists("CustomFieldError", false)) { + /** + * Errors specific to editing custom fields + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldError"; + + /** + * @access public + * @var tnsCustomFieldErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class CustomFieldPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeactivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateCustomFields"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DropDownCustomField", false)) { + /** + * A custom field that has the drop-down data type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DropDownCustomField extends CustomField { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomField"; + + /** + * @access public + * @var CustomFieldOption[] + */ + public $options; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($options = null, $id = null, $name = null, $description = null, $isActive = null, $entityType = null, $dataType = null, $visibility = 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; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldDataType", false)) { + /** + * The data types allowed for {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldDataType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldDataType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldEntityType", false)) { + /** + * Entity types recognized by custom fields + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldEntityType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldVisibility", false)) { + /** + * The visibility levels of a custom field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldVisibility { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldVisibility"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptions = null) { + $this->customFieldOptions = $customFieldOptions; + } + + } +} + +if (!class_exists("CreateCustomFieldOptionsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFields = null) { + $this->customFields = $customFields; + } + + } +} + +if (!class_exists("CreateCustomFieldsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCustomFieldOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null) { + $this->customFieldOptionId = $customFieldOptionId; + } + + } +} + +if (!class_exists("GetCustomFieldOptionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCustomFieldOptionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldOption + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCustomFieldsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCustomFieldsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCustomFieldsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformCustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldAction = null, $filterStatement = null) { + $this->customFieldAction = $customFieldAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformCustomFieldActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformCustomFieldActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateCustomFieldOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldOption[] + */ + public $customFieldOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptions = null) { + $this->customFieldOptions = $customFieldOptions; + } + + } +} + +if (!class_exists("UpdateCustomFieldOptionsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCustomFieldOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomFieldOption[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateCustomFields", false)) { + /** + * Updates the specified {@link CustomField} objects. + * + * @param customFields the custom fields to update + * @return the updated custom fields + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCustomFields { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomField[] + */ + public $customFields; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFields = null) { + $this->customFields = $customFields; + } + + } +} + +if (!class_exists("UpdateCustomFieldsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCustomFieldsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomField[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCustomFields", false)) { + /** + * The action used for activating {@link CustomField} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateCustomFields extends CustomFieldAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateCustomFields"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CustomFieldService", false)) { + /** + * CustomFieldService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldService extends DfpSoapClient { + + const SERVICE_NAME = "CustomFieldService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CustomFieldService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CustomFieldService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateCustomFields" => "ActivateCustomFields", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomFieldAction" => "CustomFieldAction", + "CustomField" => "CustomField", + "CustomFieldError" => "CustomFieldError", + "CustomFieldOption" => "CustomFieldOption", + "CustomFieldPage" => "CustomFieldPage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createCustomFieldOptions" => "CreateCustomFieldOptions", + "createCustomFieldOptionsResponse" => "CreateCustomFieldOptionsResponse", + "createCustomFields" => "CreateCustomFields", + "createCustomFieldsResponse" => "CreateCustomFieldsResponse", + "getCustomFieldOption" => "GetCustomFieldOption", + "getCustomFieldOptionResponse" => "GetCustomFieldOptionResponse", + "getCustomFieldsByStatement" => "GetCustomFieldsByStatement", + "getCustomFieldsByStatementResponse" => "GetCustomFieldsByStatementResponse", + "performCustomFieldAction" => "PerformCustomFieldAction", + "performCustomFieldActionResponse" => "PerformCustomFieldActionResponse", + "updateCustomFieldOptions" => "UpdateCustomFieldOptions", + "updateCustomFieldOptionsResponse" => "UpdateCustomFieldOptionsResponse", + "updateCustomFields" => "UpdateCustomFields", + "updateCustomFieldsResponse" => "UpdateCustomFieldsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("createCustomFieldOptions", array($args)); + 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) { + $args = new CreateCustomFields($customFields); + $result = $this->__soapCall("createCustomFields", array($args)); + 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) { + $args = new GetCustomFieldOption($customFieldOptionId); + $result = $this->__soapCall("getCustomFieldOption", array($args)); + 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) { + $args = new GetCustomFieldsByStatement($filterStatement); + $result = $this->__soapCall("getCustomFieldsByStatement", array($args)); + 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) { + $args = new PerformCustomFieldAction($customFieldAction, $filterStatement); + $result = $this->__soapCall("performCustomFieldAction", array($args)); + 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) { + $args = new UpdateCustomFieldOptions($customFieldOptions); + $result = $this->__soapCall("updateCustomFieldOptions", array($args)); + 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) { + $args = new UpdateCustomFields($customFields); + $result = $this->__soapCall("updateCustomFields", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/CustomTargetingService.php b/src/Google/Api/Ads/Dfp/v201505/CustomTargetingService.php new file mode 100755 index 000000000..91c0ae067 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/CustomTargetingService.php @@ -0,0 +1,4062 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingKeyAction", false)) { + /** + * Represents the actions that can be performed on {@link CustomTargetingKey} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingKeyAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingKey", false)) { + /** + * {@code CustomTargetingKey} represents a key used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingKey { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * @access public + * @var tnsCustomTargetingKeyStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $displayName = null, $type = null, $status = null) { + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->type = $type; + $this->status = $status; + } + + } +} + +if (!class_exists("CustomTargetingKeyPage", false)) { + /** + * Captures a page of {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingKeyPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingValueAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingValue", false)) { + /** + * {@code CustomTargetingValue} represents a value used for custom targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * @access public + * @var tnsCustomTargetingValueStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingKeyId = null, $id = null, $name = null, $displayName = null, $matchType = null, $status = null) { + $this->customTargetingKeyId = $customTargetingKeyId; + $this->id = $id; + $this->name = $name; + $this->displayName = $displayName; + $this->matchType = $matchType; + $this->status = $status; + } + + } +} + +if (!class_exists("CustomTargetingValuePage", false)) { + /** + * Captures a page of {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingValuePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeleteCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteCustomTargetingKeys"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeleteCustomTargetingValues", false)) { + /** + * Represents the delete action that can be performed on + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteCustomTargetingValues"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingKeyStatus", false)) { + /** + * Describes the statuses for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingKeyStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingKey.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingKeyType", false)) { + /** + * Specifies the types for {@code CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingKeyType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingKey.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingValueMatchType", false)) { + /** + * Represents the ways in which {@link CustomTargetingValue#name} strings will + * be matched with ad requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingValueMatchType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingValue.MatchType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingValueStatus", false)) { + /** + * Describes the statuses for {@code CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingValueStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingValue.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keys = null) { + $this->keys = $keys; + } + + } +} + +if (!class_exists("CreateCustomTargetingKeysResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + $this->values = $values; + } + + } +} + +if (!class_exists("CreateCustomTargetingValuesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCustomTargetingKeysByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCustomTargetingKeysByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCustomTargetingKeysByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingKeyPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCustomTargetingValuesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetCustomTargetingValuesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCustomTargetingValuesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingValuePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformCustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingKeyAction = null, $filterStatement = null) { + $this->customTargetingKeyAction = $customTargetingKeyAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformCustomTargetingKeyActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformCustomTargetingKeyActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformCustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueAction = null, $filterStatement = null) { + $this->customTargetingValueAction = $customTargetingValueAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformCustomTargetingValueActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformCustomTargetingValueActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateCustomTargetingKeys { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $keys; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keys = null) { + $this->keys = $keys; + } + + } +} + +if (!class_exists("UpdateCustomTargetingKeysResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCustomTargetingKeysResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingKey[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateCustomTargetingValues { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + $this->values = $values; + } + + } +} + +if (!class_exists("UpdateCustomTargetingValuesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateCustomTargetingValuesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var CustomTargetingValue[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCustomTargetingKeys", false)) { + /** + * The action used for activating inactive (i.e. deleted) + * {@link CustomTargetingKey} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateCustomTargetingKeys extends CustomTargetingKeyAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateCustomTargetingKeys"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateCustomTargetingValues", false)) { + /** + * The action used for activating inactive (i.e. deleted) + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateCustomTargetingValues extends CustomTargetingValueAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateCustomTargetingValues"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CustomTargetingService", false)) { + /** + * CustomTargetingService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingService extends DfpSoapClient { + + const SERVICE_NAME = "CustomTargetingService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/CustomTargetingService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/CustomTargetingService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateCustomTargetingKeys" => "ActivateCustomTargetingKeys", + "ActivateCustomTargetingValues" => "ActivateCustomTargetingValues", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingKeyAction" => "CustomTargetingKeyAction", + "CustomTargetingKey" => "CustomTargetingKey", + "CustomTargetingKeyPage" => "CustomTargetingKeyPage", + "CustomTargetingValueAction" => "CustomTargetingValueAction", + "CustomTargetingValue" => "CustomTargetingValue", + "CustomTargetingValuePage" => "CustomTargetingValuePage", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteCustomTargetingKeys" => "DeleteCustomTargetingKeys", + "DeleteCustomTargetingValues" => "DeleteCustomTargetingValues", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "CustomTargetingKey.Status" => "CustomTargetingKeyStatus", + "CustomTargetingKey.Type" => "CustomTargetingKeyType", + "CustomTargetingValue.MatchType" => "CustomTargetingValueMatchType", + "CustomTargetingValue.Status" => "CustomTargetingValueStatus", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "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", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateCustomTargetingKeys($keys); + $result = $this->__soapCall("createCustomTargetingKeys", array($args)); + 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) { + $args = new CreateCustomTargetingValues($values); + $result = $this->__soapCall("createCustomTargetingValues", array($args)); + 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) { + $args = new GetCustomTargetingKeysByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingKeysByStatement", array($args)); + 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) { + $args = new GetCustomTargetingValuesByStatement($filterStatement); + $result = $this->__soapCall("getCustomTargetingValuesByStatement", array($args)); + 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) { + $args = new PerformCustomTargetingKeyAction($customTargetingKeyAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingKeyAction", array($args)); + 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) { + $args = new PerformCustomTargetingValueAction($customTargetingValueAction, $filterStatement); + $result = $this->__soapCall("performCustomTargetingValueAction", array($args)); + 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) { + $args = new UpdateCustomTargetingKeys($keys); + $result = $this->__soapCall("updateCustomTargetingKeys", array($args)); + 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) { + $args = new UpdateCustomTargetingValues($values); + $result = $this->__soapCall("updateCustomTargetingValues", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ExchangeRateService.php b/src/Google/Api/Ads/Dfp/v201505/ExchangeRateService.php new file mode 100755 index 000000000..d732357c0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ExchangeRateService.php @@ -0,0 +1,2952 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class ExchangeRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ExchangeRatePage", false)) { + /** + * Captures a page of {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateDirection", false)) { + /** + * Determines which direction (from which currency to which currency) the exchange rate is in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateDirection { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateDirection"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateRefreshRate", false)) { + /** + * Determines at which rate the exchange rate is refreshed. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateRefreshRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateRefreshRate"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + + } +} + +if (!class_exists("CreateExchangeRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateExchangeRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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}
    {@code direction}{@link ExchangeRate#direction}
    {@code exchangeRate}{@link ExchangeRate#exchangeRate}
    + * + * @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 v201505 + */ + class GetExchangeRatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetExchangeRatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetExchangeRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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}
    {@code direction}{@link ExchangeRate#direction}
    {@code exchangeRate}{@link ExchangeRate#exchangeRate}
    + * + * @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 v201505 + */ + class PerformExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRateAction = null, $filterStatement = null) { + $this->exchangeRateAction = $exchangeRateAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformExchangeRateActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformExchangeRateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateExchangeRates", false)) { + /** + * Updates the specified {@link ExchangeRate} objects. + * + * @param exchangeRates the exchange rates to update + * @return the updated exchange rates + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateExchangeRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $exchangeRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($exchangeRates = null) { + $this->exchangeRates = $exchangeRates; + } + + } +} + +if (!class_exists("UpdateExchangeRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateExchangeRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ExchangeRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeleteExchangeRates", false)) { + /** + * The action used to delete {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteExchangeRates extends ExchangeRateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteExchangeRates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ExchangeRateService", false)) { + /** + * ExchangeRateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateService extends DfpSoapClient { + + const SERVICE_NAME = "ExchangeRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ExchangeRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ExchangeRateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getExchangeRatesByStatement" => "GetExchangeRatesByStatement", + "getExchangeRatesByStatementResponse" => "GetExchangeRatesByStatementResponse", + "performExchangeRateAction" => "PerformExchangeRateAction", + "performExchangeRateActionResponse" => "PerformExchangeRateActionResponse", + "updateExchangeRates" => "UpdateExchangeRates", + "updateExchangeRatesResponse" => "UpdateExchangeRatesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateExchangeRates($exchangeRates); + $result = $this->__soapCall("createExchangeRates", array($args)); + 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}
    {@code direction}{@link ExchangeRate#direction}
    {@code exchangeRate}{@link ExchangeRate#exchangeRate}
    + * + * @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) { + $args = new GetExchangeRatesByStatement($filterStatement); + $result = $this->__soapCall("getExchangeRatesByStatement", array($args)); + 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}
    {@code direction}{@link ExchangeRate#direction}
    {@code exchangeRate}{@link ExchangeRate#exchangeRate}
    + * + * @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) { + $args = new PerformExchangeRateAction($exchangeRateAction, $filterStatement); + $result = $this->__soapCall("performExchangeRateAction", array($args)); + 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) { + $args = new UpdateExchangeRates($exchangeRates); + $result = $this->__soapCall("updateExchangeRates", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ForecastService.php b/src/Google/Api/Ads/Dfp/v201505/ForecastService.php new file mode 100755 index 000000000..8612b4228 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ForecastService.php @@ -0,0 +1,11324 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError"; + + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AvailabilityForecast", false)) { + /** + * Describes predicted inventory availability for a {@link ProspectiveLineItem}. + * + *

    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 cause lower and same priority line items to underdeliver. + *
  • Possible units -- How many units can be booked without affecting any higher priority line + * items. Booking more than this number can cause the line item to underdeliver. + *
  • Matched (forecast) units -- How many units satisfy all specified + * criteria. + *
  • + * + *

    Underdelivery is caused by overbooking. However, 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 v201505 + */ + class AvailabilityForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailabilityForecast"; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @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 TargetingCriteriaBreakdown[] + */ + public $targetingCriteriaBreakdowns; + + /** + * @access public + * @var ContendingLineItem[] + */ + public $contendingLineItems; + + /** + * @access public + * @var GrpDemographicBreakdown[] + */ + public $demographicBreakdowns; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $availableUnits = null, $deliveredUnits = null, $matchedUnits = null, $possibleUnits = null, $reservedUnits = null, $targetingCriteriaBreakdowns = null, $contendingLineItems = null, $demographicBreakdowns = null) { + $this->lineItemId = $lineItemId; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->availableUnits = $availableUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + $this->possibleUnits = $possibleUnits; + $this->reservedUnits = $reservedUnits; + $this->targetingCriteriaBreakdowns = $targetingCriteriaBreakdowns; + $this->contendingLineItems = $contendingLineItems; + $this->demographicBreakdowns = $demographicBreakdowns; + } + + } +} + +if (!class_exists("AvailabilityForecastOptions", false)) { + /** + * Forecasting options for line item availability forecasts. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailabilityForecastOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailabilityForecastOptions"; + + /** + * @access public + * @var boolean + */ + public $includeTargetingCriteriaBreakdown; + + /** + * @access public + * @var boolean + */ + public $includeContendingLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($includeTargetingCriteriaBreakdown = null, $includeContendingLineItems = null) { + $this->includeTargetingCriteriaBreakdown = $includeTargetingCriteriaBreakdown; + $this->includeContendingLineItems = $includeContendingLineItems; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError"; + + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyCreditStatusError", false)) { + /** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError"; + + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContendingLineItem", false)) { + /** + * Describes contending line items for a {@link Forecast}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContendingLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; + } + + } +} + +if (!class_exists("ContentMetadataTargetingError", false)) { + /** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentTargeting", false)) { + /** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError"; + + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryData"; + + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($units = null) { + $this->units = $units; + } + + } +} + +if (!class_exists("DeliveryForecastOptions", false)) { + /** + * Forecasting options for line item delivery forecasts. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryForecastOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryForecastOptions"; + + /** + * @access public + * @var integer[] + */ + public $ignoredLineItemIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($ignoredLineItemIds = null) { + $this->ignoredLineItemIds = $ignoredLineItemIds; + } + + } +} + +if (!class_exists("DeliveryForecast", false)) { + /** + * The forecast of delivery for a list of {@link ProspectiveLineItem} objects to be reserved at the + * same time. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryForecast"; + + /** + * @access public + * @var LineItemDeliveryForecast[] + */ + public $lineItemDeliveryForecasts; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemDeliveryForecasts = null) { + $this->lineItemDeliveryForecasts = $lineItemDeliveryForecasts; + } + + } +} + +if (!class_exists("DeliveryIndicator", false)) { + /** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Goal", false)) { + /** + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Goal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Goal"; + + /** + * @access public + * @var tnsGoalType + */ + public $goalType; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; + } + + } +} + +if (!class_exists("GrpDemographicBreakdown", false)) { + /** + * GRP forecast breakdown counts associated with a gender and age demographic. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpDemographicBreakdown { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpDemographicBreakdown"; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * @access public + * @var tnsGrpUnitType + */ + public $unitType; + + /** + * @access public + * @var tnsGrpGender + */ + public $gender; + + /** + * @access public + * @var tnsGrpAge + */ + public $age; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($availableUnits = null, $matchedUnits = null, $unitType = null, $gender = null, $age = null) { + $this->availableUnits = $availableUnits; + $this->matchedUnits = $matchedUnits; + $this->unitType = $unitType; + $this->gender = $gender; + $this->age = $age; + } + + } +} + +if (!class_exists("GrpSettings", false)) { + /** + * {@code GrpSettings} contains information for a line item that will have a target demographic + * when serving. This information will be used to set up tracking and enable reporting on the + * demographic information. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettings { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettings"; + + /** + * @access public + * @var integer + */ + public $minTargetAge; + + /** + * @access public + * @var integer + */ + public $maxTargetAge; + + /** + * @access public + * @var tnsGrpTargetGender + */ + public $targetGender; + + /** + * @access public + * @var tnsGrpProvider + */ + public $provider; + + /** + * @access public + * @var integer + */ + public $targetImpressionGoal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($minTargetAge = null, $maxTargetAge = null, $targetGender = null, $provider = null, $targetImpressionGoal = null) { + $this->minTargetAge = $minTargetAge; + $this->maxTargetAge = $maxTargetAge; + $this->targetGender = $targetGender; + $this->provider = $provider; + $this->targetImpressionGoal = $targetImpressionGoal; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError"; + + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociation", false)) { + /** + * A {@code LineItemActivityAssociation} associates a {@link LineItem} with an {@link Activity} so + * that the conversions of the {@link Activity} can be counted against the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociation"; + + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * @access public + * @var Money + */ + public $clickThroughConversionCost; + + /** + * @access public + * @var Money + */ + public $viewThroughConversionCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activityId = null, $clickThroughConversionCost = null, $viewThroughConversionCost = null) { + $this->activityId = $activityId; + $this->clickThroughConversionCost = $clickThroughConversionCost; + $this->viewThroughConversionCost = $viewThroughConversionCost; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemDeliveryForecast", false)) { + /** + * The forecasted delivery of a {@link ProspectiveLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemDeliveryForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemDeliveryForecast"; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $predictedDeliveryUnits; + + /** + * @access public + * @var integer + */ + public $deliveredUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemId = null, $orderId = null, $unitType = null, $predictedDeliveryUnits = null, $deliveredUnits = null, $matchedUnits = null) { + $this->lineItemId = $lineItemId; + $this->orderId = $orderId; + $this->unitType = $unitType; + $this->predictedDeliveryUnits = $predictedDeliveryUnits; + $this->deliveredUnits = $deliveredUnits; + $this->matchedUnits = $matchedUnits; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError"; + + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError"; + + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemSummary", false)) { + /** + * The {@code LineItemSummary} represents the base class from which a {@code + * LineItem} is derived. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 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 LineItemActivityAssociation[] + */ + public $activityAssociations; + + /** + * @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 $skipCrossSellingRuleWarningChecks; + + /** + * @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 $isSetTopBoxEnabled; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var SetTopBoxInfo + */ + public $setTopBoxDisplayInfo; + + /** + * @access public + * @var Goal + */ + public $primaryGoal; + + /** + * @access public + * @var Goal[] + */ + public $secondaryGoals; + + /** + * @access public + * @var GrpSettings + */ + public $grpSettings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = 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, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = 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->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; + $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->isSetTopBoxEnabled = $isSetTopBoxEnabled; + $this->isMissingCreatives = $isMissingCreatives; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProspectiveLineItem", false)) { + /** + * Represents a prospective line item to be forecasted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProspectiveLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProspectiveLineItem"; + + /** + * @access public + * @var LineItem + */ + public $lineItem; + + /** + * @access public + * @var integer + */ + public $advertiserId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItem = null, $advertiserId = null) { + $this->lineItem = $lineItem; + $this->advertiserId = $advertiserId; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError"; + + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxInfo", false)) { + /** + * Contains data used to display information synchronized with Canoe for set-top box enabled + * {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxInfo"; + + /** + * @access public + * @var tnsSetTopBoxSyncStatus + */ + public $syncStatus; + + /** + * @access public + * @var tnsCanoeSyncResult + */ + public $lastSyncResult; + + /** + * @access public + * @var string + */ + public $lastSyncCanoeResponseMessage; + + /** + * @access public + * @var string + */ + public $nielsenProductCategoryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($syncStatus = null, $lastSyncResult = null, $lastSyncCanoeResponseMessage = null, $nielsenProductCategoryCode = null) { + $this->syncStatus = $syncStatus; + $this->lastSyncResult = $lastSyncResult; + $this->lastSyncCanoeResponseMessage = $lastSyncCanoeResponseMessage; + $this->nielsenProductCategoryCode = $nielsenProductCategoryCode; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Stats", false)) { + /** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TargetingCriteriaBreakdown", false)) { + /** + * A single targeting criteria breakdown result. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetingCriteriaBreakdown { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetingCriteriaBreakdown"; + + /** + * @access public + * @var tnsTargetingDimension + */ + public $targetingDimension; + + /** + * @access public + * @var integer + */ + public $targetingCriteriaId; + + /** + * @access public + * @var string + */ + public $targetingCriteriaName; + + /** + * @access public + * @var boolean + */ + public $excluded; + + /** + * @access public + * @var integer + */ + public $availableUnits; + + /** + * @access public + * @var integer + */ + public $matchedUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetingDimension = null, $targetingCriteriaId = null, $targetingCriteriaName = null, $excluded = null, $availableUnits = null, $matchedUnits = null) { + $this->targetingDimension = $targetingDimension; + $this->targetingCriteriaId = $targetingCriteriaId; + $this->targetingCriteriaName = $targetingCriteriaName; + $this->excluded = $excluded; + $this->availableUnits = $availableUnits; + $this->matchedUnits = $matchedUnits; + } + + } +} + +if (!class_exists("Targeting", false)) { + /** + * Contains targeting criteria for {@link LineItem} objects. See + * {@link LineItem#targeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Technology", false)) { + /** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeOfDay", false)) { + /** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hour = null, $minute = null) { + $this->hour = $hour; + $this->minute = $minute; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CanoeSyncResult", false)) { + /** + * Represents sync result types between set-top box enabled {@link LineItem line items} and Canoe. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CanoeSyncResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CanoeSyncResult"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClickTrackingLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanionDeliveryOption", false)) { + /** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanionDeliveryOption"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyCreditStatusErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ComputedStatus", false)) { + /** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ComputedStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { + /** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CostType", false)) { + /** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CostType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeRotationType", false)) { + /** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeRotationType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSizeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayOfWeek"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryTimeZone", false)) { + /** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryTimeZone"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryRateType", false)) { + /** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryRateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GoalType", false)) { + /** + * Specifies the type of the goal for a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GoalType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GoalType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpAge", false)) { + /** + * The age range associated with a GRP demographic forecast. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpAge { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpAge"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpGender", false)) { + /** + * The demographic gender associated with a GRP demographic forecast. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpGender { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpGender"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpProvider", false)) { + /** + * Represents available GRP providers that a line item will have its target demographic measured by. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpProvider { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpProvider"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpTargetGender", false)) { + /** + * Represents the target gender for a GRP demographic targeted line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpTargetGender { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpTargetGender"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpUnitType", false)) { + /** + * Type of unit represented in a GRP demographic breakdown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpUnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpUnitType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemDiscountType", false)) { + /** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemDiscountType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemFlightDateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemSummaryReservationStatus", false)) { + /** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemSummary.ReservationStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MinuteOfHour", false)) { + /** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MinuteOfHour"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativePersistenceType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RegExErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { + /** + * Reason for set-top box error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxSyncStatus", false)) { + class SetTopBoxSyncStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxSyncStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StartDateTimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetingDimension", false)) { + /** + * Targeting dimension of targeting breakdowns. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetingDimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetingDimension"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnitType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetAvailabilityForecast", false)) { + /** + * Gets the availability forecast for a {@link ProspectiveLineItem}. An availability forecast + * reports the maximum number of available units that the line item can book, and the total + * number of units matching the line item's targeting. + * + *

    Note: Beginning in v201502, this replaces the previous getForecast method. + * + * @param lineItem the prospective line item (new or existing) to be forecasted for availability + * @param forecastOptions options controlling the forecast + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAvailabilityForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProspectiveLineItem + */ + public $lineItem; + + /** + * @access public + * @var AvailabilityForecastOptions + */ + public $forecastOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItem = null, $forecastOptions = null) { + $this->lineItem = $lineItem; + $this->forecastOptions = $forecastOptions; + } + + } +} + +if (!class_exists("GetAvailabilityForecastResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAvailabilityForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AvailabilityForecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetAvailabilityForecastById", false)) { + /** + * Gets an {@link AvailabilityForecast} for an existing {@link LineItem} object. + * An availability forecast reports the maximum number of available units that the line item can + * be booked with, and also the total number of units matching the line item's targeting. + * + *

    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}. + * + *

    Note: Beginning in v201502, this replaces the previous getForecastById method. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @param forecastOptions options controlling the forecast + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAvailabilityForecastById { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var integer + */ + public $lineItemId; + + /** + * @access public + * @var AvailabilityForecastOptions + */ + public $forecastOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemId = null, $forecastOptions = null) { + $this->lineItemId = $lineItemId; + $this->forecastOptions = $forecastOptions; + } + + } +} + +if (!class_exists("GetAvailabilityForecastByIdResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAvailabilityForecastByIdResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AvailabilityForecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetDeliveryForecast", false)) { + /** + * Gets the delivery forecast for a list of {@link ProspectiveLineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItems line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetDeliveryForecast { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProspectiveLineItem[] + */ + public $lineItems; + + /** + * @access public + * @var DeliveryForecastOptions + */ + public $forecastOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItems = null, $forecastOptions = null) { + $this->lineItems = $lineItems; + $this->forecastOptions = $forecastOptions; + } + + } +} + +if (!class_exists("GetDeliveryForecastResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetDeliveryForecastResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var DeliveryForecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetDeliveryForecastByIds", false)) { + /** + * Gets the delivery forecast for a list of existing {@link LineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItemIds the IDs of line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetDeliveryForecastByIds { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var integer[] + */ + public $lineItemIds; + + /** + * @access public + * @var DeliveryForecastOptions + */ + public $forecastOptions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemIds = null, $forecastOptions = null) { + $this->lineItemIds = $lineItemIds; + $this->forecastOptions = $forecastOptions; + } + + } +} + +if (!class_exists("GetDeliveryForecastByIdsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetDeliveryForecastByIdsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var DeliveryForecast + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdUnitAfcSizeError", false)) { + /** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError"; + + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitCodeError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError"; + + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItem"; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = 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, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = 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->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; + $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->isSetTopBoxEnabled = $isSetTopBoxEnabled; + $this->isMissingCreatives = $isMissingCreatives; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("ForecastService", false)) { + /** + * ForecastService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastService extends DfpSoapClient { + + const SERVICE_NAME = "ForecastService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ForecastService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ForecastService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "AudienceExtensionError" => "AudienceExtensionError", + "AuthenticationError" => "AuthenticationError", + "AvailabilityForecast" => "AvailabilityForecast", + "AvailabilityForecastOptions" => "AvailabilityForecastOptions", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContendingLineItem" => "ContendingLineItem", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "CrossSellError" => "CrossSellError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryForecastOptions" => "DeliveryForecastOptions", + "DeliveryForecast" => "DeliveryForecast", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "Goal" => "Goal", + "GrpDemographicBreakdown" => "GrpDemographicBreakdown", + "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemActivityAssociation" => "LineItemActivityAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemDeliveryForecast" => "LineItemDeliveryForecast", + "LineItem" => "LineItem", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemSummary" => "LineItemSummary", + "Location" => "DfpLocation", + "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", + "ProgrammaticError" => "ProgrammaticError", + "ProspectiveLineItem" => "ProspectiveLineItem", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetTopBoxInfo" => "SetTopBoxInfo", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "TargetingCriteriaBreakdown" => "TargetingCriteriaBreakdown", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "Technology" => "Technology", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CanoeSyncResult" => "CanoeSyncResult", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CrossSellError.Reason" => "CrossSellErrorReason", + "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", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", + "GrpAge" => "GrpAge", + "GrpGender" => "GrpGender", + "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "GrpTargetGender" => "GrpTargetGender", + "GrpUnitType" => "GrpUnitType", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", + "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", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "SetTopBoxSyncStatus" => "SetTopBoxSyncStatus", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TargetingDimension" => "TargetingDimension", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "getAvailabilityForecast" => "GetAvailabilityForecast", + "getAvailabilityForecastResponse" => "GetAvailabilityForecastResponse", + "getAvailabilityForecastById" => "GetAvailabilityForecastById", + "getAvailabilityForecastByIdResponse" => "GetAvailabilityForecastByIdResponse", + "getDeliveryForecast" => "GetDeliveryForecast", + "getDeliveryForecastResponse" => "GetDeliveryForecastResponse", + "getDeliveryForecastByIds" => "GetDeliveryForecastByIds", + "getDeliveryForecastByIdsResponse" => "GetDeliveryForecastByIdsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Gets the availability forecast for a {@link ProspectiveLineItem}. An availability forecast + * reports the maximum number of available units that the line item can book, and the total + * number of units matching the line item's targeting. + * + *

    Note: Beginning in v201502, this replaces the previous getForecast method. + * + * @param lineItem the prospective line item (new or existing) to be forecasted for availability + * @param forecastOptions options controlling the forecast + */ + public function getAvailabilityForecast($lineItem, $forecastOptions) { + $args = new GetAvailabilityForecast($lineItem, $forecastOptions); + $result = $this->__soapCall("getAvailabilityForecast", array($args)); + return $result->rval; + } + /** + * Gets an {@link AvailabilityForecast} for an existing {@link LineItem} object. + * An availability forecast reports the maximum number of available units that the line item can + * be booked with, and also the total number of units matching the line item's targeting. + * + *

    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}. + * + *

    Note: Beginning in v201502, this replaces the previous getForecastById method. + * + * @param lineItemId the ID of a {@link LineItem} to run the forecast on. + * @param forecastOptions options controlling the forecast + */ + public function getAvailabilityForecastById($lineItemId, $forecastOptions) { + $args = new GetAvailabilityForecastById($lineItemId, $forecastOptions); + $result = $this->__soapCall("getAvailabilityForecastById", array($args)); + return $result->rval; + } + /** + * Gets the delivery forecast for a list of {@link ProspectiveLineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItems line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast + */ + public function getDeliveryForecast($lineItems, $forecastOptions) { + $args = new GetDeliveryForecast($lineItems, $forecastOptions); + $result = $this->__soapCall("getDeliveryForecast", array($args)); + return $result->rval; + } + /** + * Gets the delivery forecast for a list of existing {@link LineItem} objects in a single + * delivery simulation with line items potentially contending with each other. A delivery + * forecast reports the number of units that will be delivered to each line item given the line + * item goals and contentions from other line items. + * + * @param lineItemIds the IDs of line items to be forecasted for delivery + * @param forecastOptions options controlling the forecast + */ + public function getDeliveryForecastByIds($lineItemIds, $forecastOptions) { + $args = new GetDeliveryForecastByIds($lineItemIds, $forecastOptions); + $result = $this->__soapCall("getDeliveryForecastByIds", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/InventoryService.php b/src/Google/Api/Ads/Dfp/v201505/InventoryService.php new file mode 100755 index 000000000..3c52afc32 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/InventoryService.php @@ -0,0 +1,5815 @@ +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 v201505 + */ + class AdSenseSettingsInheritedProperty { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseSettingsInheritedProperty"; + + /** + * @access public + * @var AdSenseSettings + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + $this->value = $value; + } + + } +} + +if (!class_exists("AdUnitAction", false)) { + /** + * Represents the actions that can be performed on {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * @access public + * @var integer + */ + public $refreshRate; + + /** + * @access public + * @var boolean + */ + public $isSharedByDistributor; + + /** + * @access public + * @var CrossSellingDistributor + */ + public $crossSellingDistributor; + + /** + * @access public + * @var string + */ + public $externalSetTopBoxChannelId; + + /** + * @access public + * @var boolean + */ + public $isSetTopBoxEnabled; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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, $refreshRate = null, $isSharedByDistributor = null, $crossSellingDistributor = null, $externalSetTopBoxChannelId = null, $isSetTopBoxEnabled = 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; + $this->refreshRate = $refreshRate; + $this->isSharedByDistributor = $isSharedByDistributor; + $this->crossSellingDistributor = $crossSellingDistributor; + $this->externalSetTopBoxChannelId = $externalSetTopBoxChannelId; + $this->isSetTopBoxEnabled = $isSetTopBoxEnabled; + } + + } +} + +if (!class_exists("AdUnitPage", false)) { + /** + * Captures a page of {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AdUnitParent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ArchiveAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AssignAdUnitsToPlacement", false)) { + /** + * The action used for assigning a group of {@link AdUnit} objects to a + * {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssignAdUnitsToPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssignAdUnitsToPlacement"; + + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($placementId = null) { + parent::__construct(); + $this->placementId = $placementId; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeWrapperError", false)) { + /** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError"; + + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CrossSellingDistributor", false)) { + /** + * Encapsulation of data describing a distributor network that has shared an ad unit with a + * content provider network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellingDistributor { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellingDistributor"; + + /** + * @access public + * @var string + */ + public $networkName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkName = null) { + $this->networkName = $networkName; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeactivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidColorError", false)) { + /** + * A list of all errors associated with a color attribute. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidColorError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidColorError"; + + /** + * @access public + * @var tnsInvalidColorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError"; + + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitPartnerAssociationError", false)) { + /** + * Errors relating to the association of partner companies with inventory units. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitPartnerAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitPartnerAssociationError"; + + /** + * @access public + * @var tnsInventoryUnitPartnerAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitRefreshRateError", false)) { + /** + * Lists errors relating to {@link AdUnit#refreshRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitRefreshRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitRefreshRateError"; + + /** + * @access public + * @var tnsInventoryUnitRefreshRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitTypeError", false)) { + /** + * Lists the errors associated with the type of {@link AdUnit} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitTypeError"; + + /** + * @access public + * @var tnsAdUnitTypeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class LabelFrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError"; + + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RemoveAdUnitsFromPlacement", false)) { + /** + * The action used for removing a group of {@link AdUnit} objects + * from a {@link Placement}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RemoveAdUnitsFromPlacement extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RemoveAdUnitsFromPlacement"; + + /** + * @access public + * @var integer + */ + public $placementId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($placementId = null) { + parent::__construct(); + $this->placementId = $placementId; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Size_StringMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseAccountError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdSenseSettingsAdType", false)) { + /** + * Specifies the type of ads that can be served through this {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseSettingsAdType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseSettings.AdType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdSenseSettingsBorderStyle", false)) { + /** + * Describes the border of the HTML elements used to surround an ad + * displayed by the {@link AdUnit}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseSettingsBorderStyle { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseSettings.BorderStyle"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdSenseSettingsFontFamily", false)) { + /** + * List of all possible font families. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseSettingsFontFamily { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseSettings.FontFamily"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdSenseSettingsFontSize", false)) { + /** + * List of all possible font sizes the user can choose. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseSettingsFontSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseSettings.FontSize"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitAfcSizeErrorReason", false)) { + /** + * The supplied Afc size is not valid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitTargetWindow", false)) { + /** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnit.TargetWindow"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitHierarchyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeWrapperErrorReason", false)) { + /** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidColorErrorReason", false)) { + /** + * The provided value is not a valid hexadecimal color. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidColorErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidColorError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryStatus", false)) { + /** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitPartnerAssociationErrorReason", false)) { + /** + * Partner association error reason types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitPartnerAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitPartnerAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitRefreshRateErrorReason", false)) { + /** + * Reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitRefreshRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitRefreshRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitTypeErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTypeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitTypeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class MobilePlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobilePlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RegExErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SmartSizeMode", false)) { + /** + * Represents smart size modes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SmartSizeMode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SmartSizeMode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adUnits = null) { + $this->adUnits = $adUnits; + } + + } +} + +if (!class_exists("CreateAdUnitsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAdUnitSizesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetAdUnitSizesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAdUnitSizesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnitSize[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetAdUnitsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adUnitAction = null, $filterStatement = null) { + $this->adUnitAction = $adUnitAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformAdUnitActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateAdUnits", false)) { + /** + * Updates the specified {@link AdUnit} objects. + * + * @param adUnits the ad units to update + * @return the updated ad units + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAdUnits { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnit[] + */ + public $adUnits; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adUnits = null) { + $this->adUnits = $adUnits; + } + + } +} + +if (!class_exists("UpdateAdUnitsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateAdUnitsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var AdUnit[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateAdUnits", false)) { + /** + * The action used for activating {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateAdUnits extends AdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdSenseAccountError", false)) { + /** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseAccountError"; + + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitAfcSizeError", false)) { + /** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError"; + + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitCodeError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError"; + + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitHierarchyError", false)) { + /** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitHierarchyError"; + + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("InventoryService", false)) { + /** + * InventoryService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryService extends DfpSoapClient { + + const SERVICE_NAME = "InventoryService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/InventoryService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/InventoryService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateAdUnits" => "ActivateAdUnits", + "AdSenseAccountError" => "AdSenseAccountError", + "AdSenseSettings" => "AdSenseSettings", + "AdSenseSettingsInheritedProperty" => "AdSenseSettingsInheritedProperty", + "AdUnitAction" => "AdUnitAction", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnit" => "AdUnit", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitPage" => "AdUnitPage", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveAdUnits" => "ArchiveAdUnits", + "AssignAdUnitsToPlacement" => "AssignAdUnitsToPlacement", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "CrossSellError" => "CrossSellError", + "CrossSellingDistributor" => "CrossSellingDistributor", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateAdUnits" => "DeactivateAdUnits", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "InternalApiError" => "InternalApiError", + "InvalidColorError" => "InvalidColorError", + "InventoryUnitError" => "InventoryUnitError", + "InventoryUnitPartnerAssociationError" => "InventoryUnitPartnerAssociationError", + "InventoryUnitRefreshRateError" => "InventoryUnitRefreshRateError", + "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", + "RequiredNumberError" => "RequiredNumberError", + "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", + "Value" => "Value", + "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", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeWrapperError.Reason" => "CreativeWrapperErrorReason", + "CrossSellError.Reason" => "CrossSellErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidColorError.Reason" => "InvalidColorErrorReason", + "InventoryStatus" => "InventoryStatus", + "InventoryUnitError.Reason" => "InventoryUnitErrorReason", + "InventoryUnitPartnerAssociationError.Reason" => "InventoryUnitPartnerAssociationErrorReason", + "InventoryUnitRefreshRateError.Reason" => "InventoryUnitRefreshRateErrorReason", + "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", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SmartSizeMode" => "SmartSizeMode", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TimeUnit" => "TimeUnit", + "createAdUnits" => "CreateAdUnits", + "createAdUnitsResponse" => "CreateAdUnitsResponse", + "getAdUnitSizesByStatement" => "GetAdUnitSizesByStatement", + "getAdUnitSizesByStatementResponse" => "GetAdUnitSizesByStatementResponse", + "getAdUnitsByStatement" => "GetAdUnitsByStatement", + "getAdUnitsByStatementResponse" => "GetAdUnitsByStatementResponse", + "performAdUnitAction" => "PerformAdUnitAction", + "performAdUnitActionResponse" => "PerformAdUnitActionResponse", + "updateAdUnits" => "UpdateAdUnits", + "updateAdUnitsResponse" => "UpdateAdUnitsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateAdUnits($adUnits); + $result = $this->__soapCall("createAdUnits", array($args)); + 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) { + $args = new GetAdUnitSizesByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitSizesByStatement", array($args)); + 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) { + $args = new GetAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getAdUnitsByStatement", array($args)); + 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) { + $args = new PerformAdUnitAction($adUnitAction, $filterStatement); + $result = $this->__soapCall("performAdUnitAction", array($args)); + 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) { + $args = new UpdateAdUnits($adUnits); + $result = $this->__soapCall("updateAdUnits", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/LabelService.php b/src/Google/Api/Ads/Dfp/v201505/LabelService.php new file mode 100755 index 000000000..499f4fe58 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/LabelService.php @@ -0,0 +1,3242 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeWrapperError", false)) { + /** + * Errors specific to creative wrappers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError"; + + /** + * @access public + * @var tnsCreativeWrapperErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelAction", false)) { + /** + * Represents the actions that can be performed on {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Label", false)) { + /** + * A {@code Label} is additional information that can be added to an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Label { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class LabelError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelError"; + + /** + * @access public + * @var tnsLabelErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelPage", false)) { + /** + * Captures a page of {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeWrapperErrorReason", false)) { + /** + * The reasons for the creative wrapper error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeWrapperErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeWrapperError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelType", false)) { + /** + * Represents the types of labels supported. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labels = null) { + $this->labels = $labels; + } + + } +} + +if (!class_exists("CreateLabelsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetLabelsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetLabelsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLabelsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LabelPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformLabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelAction = null, $filterStatement = null) { + $this->labelAction = $labelAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformLabelActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformLabelActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateLabels", false)) { + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLabels { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Label[] + */ + public $labels; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labels = null) { + $this->labels = $labels; + } + + } +} + +if (!class_exists("UpdateLabelsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLabelsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Label[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateLabels", false)) { + /** + * The action used for activating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateLabels", false)) { + /** + * The action used for deactivating {@link Label} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateLabels extends LabelAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateLabels"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("LabelService", false)) { + /** + * LabelService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelService extends DfpSoapClient { + + const SERVICE_NAME = "LabelService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/LabelService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/LabelService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateLabels" => "ActivateLabels", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreativeWrapperError" => "CreativeWrapperError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLabels" => "DeactivateLabels", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "LabelAction" => "LabelAction", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createLabels" => "CreateLabels", + "createLabelsResponse" => "CreateLabelsResponse", + "getLabelsByStatement" => "GetLabelsByStatement", + "getLabelsByStatementResponse" => "GetLabelsByStatementResponse", + "performLabelAction" => "PerformLabelAction", + "performLabelActionResponse" => "PerformLabelActionResponse", + "updateLabels" => "UpdateLabels", + "updateLabelsResponse" => "UpdateLabelsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Label} objects. + * + * @param labels the labels to create + * @return the created labels with their IDs filled in + */ + public function createLabels($labels) { + $args = new CreateLabels($labels); + $result = $this->__soapCall("createLabels", array($args)); + 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) { + $args = new GetLabelsByStatement($filterStatement); + $result = $this->__soapCall("getLabelsByStatement", array($args)); + 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) { + $args = new PerformLabelAction($labelAction, $filterStatement); + $result = $this->__soapCall("performLabelAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Label} objects. + * + * @param labels the labels to update + * @return the updated labels + */ + public function updateLabels($labels) { + $args = new UpdateLabels($labels); + $result = $this->__soapCall("updateLabels", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/LineItemCreativeAssociationService.php b/src/Google/Api/Ads/Dfp/v201505/LineItemCreativeAssociationService.php new file mode 100755 index 000000000..34680a4a2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/LineItemCreativeAssociationService.php @@ -0,0 +1,5679 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AssetError", false)) { + /** + * Lists all errors associated with assets. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError"; + + /** + * @access public + * @var tnsAssetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceExtensionError", false)) { + /** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError"; + + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeAssetMacroError", false)) { + /** + * Lists all errors associated with creative asset macros. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeAssetMacroError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError"; + + /** + * @access public + * @var tnsCreativeAssetMacroErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativePreviewError", false)) { + /** + * Errors associated with generation of creative preview URIs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativePreviewError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativePreviewError"; + + /** + * @access public + * @var tnsCreativePreviewErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeSetError", false)) { + /** + * Errors relating to creative sets & subclasses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError"; + + /** + * @access public + * @var tnsCreativeSetErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomCreativeError", false)) { + /** + * Lists all errors associated with custom creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError"; + + /** + * @access public + * @var tnsCustomCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FileError", false)) { + /** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError"; + + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidPhoneNumberError", false)) { + /** + * Lists all errors associated with phone numbers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError"; + + /** + * @access public + * @var tnsInvalidPhoneNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationAction", false)) { + /** + * Represents the actions that can be performed on + * {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemCreativeAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationOperationError", false)) { + /** + * Lists all errors for executing operations on + * line item-to-creative associations + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationOperationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationPage", false)) { + /** + * Captures a page of {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class LineItemCreativeAssociationStats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($stats = null, $creativeSetStats = null, $costInOrderCurrency = null) { + $this->stats = $stats; + $this->creativeSetStats = $creativeSetStats; + $this->costInOrderCurrency = $costInOrderCurrency; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError"; + + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class Long_StatsMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RichMediaStudioCreativeError", false)) { + /** + * Lists all errors associated with Rich Media Studio creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError"; + + /** + * @access public + * @var tnsRichMediaStudioCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxCreativeError", false)) { + /** + * Errors associated with {@link SetTopBoxCreative set-top box creatives}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError"; + + /** + * @access public + * @var tnsSetTopBoxCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Stats", false)) { + /** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SwiffyConversionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError"; + + /** + * @access public + * @var tnsSwiffyConversionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeError", false)) { + /** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError"; + + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdSenseAccountErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseAccountError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AssetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AssetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AssetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeAssetMacroErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeAssetMacroErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeAssetMacroError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativePreviewErrorReason", false)) { + /** + * The creative cannot be previewed on this page. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativePreviewErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativePreviewError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeSetErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeSetErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSetError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FileErrorReason", false)) { + /** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidPhoneNumberErrorReason", false)) { + /** + * The phone number is invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidPhoneNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidPhoneNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationStatus", false)) { + /** + * Describes the status of the association. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociation.Status"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RichMediaStudioCreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RichMediaStudioCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RichMediaStudioCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxCreativeErrorReason", false)) { + /** + * Error reasons for set-top box creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StartDateTimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SwiffyConversionErrorReason", false)) { + /** + * Error reason for {@link SwiffyConversionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SwiffyConversionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SwiffyConversionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { + /** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemCreativeAssociations = null) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } + + } +} + +if (!class_exists("CreateLineItemCreativeAssociationsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetLineItemCreativeAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetLineItemCreativeAssociationsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLineItemCreativeAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemCreativeAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetPreviewUrl { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemId = null, $creativeId = null, $siteUrl = null) { + $this->lineItemId = $lineItemId; + $this->creativeId = $creativeId; + $this->siteUrl = $siteUrl; + } + + } +} + +if (!class_exists("GetPreviewUrlResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPreviewUrlResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformLineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemCreativeAssociationAction = null, $filterStatement = null) { + $this->lineItemCreativeAssociationAction = $lineItemCreativeAssociationAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformLineItemCreativeAssociationActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformLineItemCreativeAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateLineItemCreativeAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $lineItemCreativeAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemCreativeAssociations = null) { + $this->lineItemCreativeAssociations = $lineItemCreativeAssociations; + } + + } +} + +if (!class_exists("UpdateLineItemCreativeAssociationsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLineItemCreativeAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemCreativeAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateLineItemCreativeAssociations", false)) { + /** + * The action used for activating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateLineItemCreativeAssociations"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdSenseAccountError", false)) { + /** + * Error for AdSense related API calls. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdSenseAccountError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdSenseAccountError"; + + /** + * @access public + * @var tnsAdSenseAccountErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateLineItemCreativeAssociations", false)) { + /** + * The action used for deactivating {@link LineItemCreativeAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateLineItemCreativeAssociations extends LineItemCreativeAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateLineItemCreativeAssociations"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationService", false)) { + /** + * LineItemCreativeAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemCreativeAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/LineItemCreativeAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/LineItemCreativeAssociationService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateLineItemCreativeAssociations" => "ActivateLineItemCreativeAssociations", + "AdSenseAccountError" => "AdSenseAccountError", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AssetError" => "AssetError", + "AudienceExtensionError" => "AudienceExtensionError", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreativeAssetMacroError" => "CreativeAssetMacroError", + "CreativeError" => "CreativeError", + "CreativePreviewError" => "CreativePreviewError", + "CreativeSetError" => "CreativeSetError", + "CustomCreativeError" => "CustomCreativeError", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateLineItemCreativeAssociations" => "DeactivateLineItemCreativeAssociations", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidPhoneNumberError" => "InvalidPhoneNumberError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemCreativeAssociationAction" => "LineItemCreativeAssociationAction", + "LineItemCreativeAssociation" => "LineItemCreativeAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemCreativeAssociationOperationError" => "LineItemCreativeAssociationOperationError", + "LineItemCreativeAssociationPage" => "LineItemCreativeAssociationPage", + "LineItemCreativeAssociationStats" => "LineItemCreativeAssociationStats", + "LineItemError" => "LineItemError", + "Long_StatsMapEntry" => "Long_StatsMapEntry", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "RichMediaStudioCreativeError" => "RichMediaStudioCreativeError", + "ServerError" => "ServerError", + "SetTopBoxCreativeError" => "SetTopBoxCreativeError", + "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", + "Value" => "Value", + "AdSenseAccountError.Reason" => "AdSenseAccountErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AssetError.Reason" => "AssetErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeAssetMacroError.Reason" => "CreativeAssetMacroErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativePreviewError.Reason" => "CreativePreviewErrorReason", + "CreativeSetError.Reason" => "CreativeSetErrorReason", + "CustomCreativeError.Reason" => "CustomCreativeErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FileError.Reason" => "FileErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidPhoneNumberError.Reason" => "InvalidPhoneNumberErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemCreativeAssociation.Status" => "LineItemCreativeAssociationStatus", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemCreativeAssociationOperationError.Reason" => "LineItemCreativeAssociationOperationErrorReason", + "LineItemError.Reason" => "LineItemErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "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", + "RichMediaStudioCreativeError.Reason" => "RichMediaStudioCreativeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxCreativeError.Reason" => "SetTopBoxCreativeErrorReason", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "SwiffyConversionError.Reason" => "SwiffyConversionErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "createLineItemCreativeAssociations" => "CreateLineItemCreativeAssociations", + "createLineItemCreativeAssociationsResponse" => "CreateLineItemCreativeAssociationsResponse", + "getLineItemCreativeAssociationsByStatement" => "GetLineItemCreativeAssociationsByStatement", + "getLineItemCreativeAssociationsByStatementResponse" => "GetLineItemCreativeAssociationsByStatementResponse", + "getPreviewUrl" => "GetPreviewUrl", + "getPreviewUrlResponse" => "GetPreviewUrlResponse", + "performLineItemCreativeAssociationAction" => "PerformLineItemCreativeAssociationAction", + "performLineItemCreativeAssociationActionResponse" => "PerformLineItemCreativeAssociationActionResponse", + "updateLineItemCreativeAssociations" => "UpdateLineItemCreativeAssociations", + "updateLineItemCreativeAssociationsResponse" => "UpdateLineItemCreativeAssociationsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("createLineItemCreativeAssociations", array($args)); + 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) { + $args = new GetLineItemCreativeAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemCreativeAssociationsByStatement", array($args)); + 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) { + $args = new GetPreviewUrl($lineItemId, $creativeId, $siteUrl); + $result = $this->__soapCall("getPreviewUrl", array($args)); + 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) { + $args = new PerformLineItemCreativeAssociationAction($lineItemCreativeAssociationAction, $filterStatement); + $result = $this->__soapCall("performLineItemCreativeAssociationAction", array($args)); + 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) { + $args = new UpdateLineItemCreativeAssociations($lineItemCreativeAssociations); + $result = $this->__soapCall("updateLineItemCreativeAssociations", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/LineItemService.php b/src/Google/Api/Ads/Dfp/v201505/LineItemService.php new file mode 100755 index 000000000..c8e256359 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/LineItemService.php @@ -0,0 +1,10908 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError"; + + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError"; + + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyCreditStatusError", false)) { + /** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError"; + + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingValueIds = null) { + $this->customTargetingValueIds = $customTargetingValueIds; + } + + } +} + +if (!class_exists("ContentMetadataTargetingError", false)) { + /** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentTargeting", false)) { + /** + * Used to target {@link LineItem}s to specific videos on a publisher's site. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError"; + + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryData"; + + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($units = null) { + $this->units = $units; + } + + } +} + +if (!class_exists("DeliveryIndicator", false)) { + /** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Goal", false)) { + /** + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Goal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Goal"; + + /** + * @access public + * @var tnsGoalType + */ + public $goalType; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; + } + + } +} + +if (!class_exists("GrpSettings", false)) { + /** + * {@code GrpSettings} contains information for a line item that will have a target demographic + * when serving. This information will be used to set up tracking and enable reporting on the + * demographic information. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettings { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettings"; + + /** + * @access public + * @var integer + */ + public $minTargetAge; + + /** + * @access public + * @var integer + */ + public $maxTargetAge; + + /** + * @access public + * @var tnsGrpTargetGender + */ + public $targetGender; + + /** + * @access public + * @var tnsGrpProvider + */ + public $provider; + + /** + * @access public + * @var integer + */ + public $targetImpressionGoal; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($minTargetAge = null, $maxTargetAge = null, $targetGender = null, $provider = null, $targetImpressionGoal = null) { + $this->minTargetAge = $minTargetAge; + $this->maxTargetAge = $maxTargetAge; + $this->targetGender = $targetGender; + $this->provider = $provider; + $this->targetImpressionGoal = $targetImpressionGoal; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemAction", false)) { + /** + * Represents the actions that can be performed on {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociation", false)) { + /** + * A {@code LineItemActivityAssociation} associates a {@link LineItem} with an {@link Activity} so + * that the conversions of the {@link Activity} can be counted against the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociation"; + + /** + * @access public + * @var integer + */ + public $activityId; + + /** + * @access public + * @var Money + */ + public $clickThroughConversionCost; + + /** + * @access public + * @var Money + */ + public $viewThroughConversionCost; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($activityId = null, $clickThroughConversionCost = null, $viewThroughConversionCost = null) { + $this->activityId = $activityId; + $this->clickThroughConversionCost = $clickThroughConversionCost; + $this->viewThroughConversionCost = $viewThroughConversionCost; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError"; + + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError"; + + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemPage", false)) { + /** + * Captures a page of {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 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 LineItemActivityAssociation[] + */ + public $activityAssociations; + + /** + * @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 $skipCrossSellingRuleWarningChecks; + + /** + * @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 $isSetTopBoxEnabled; + + /** + * @access public + * @var boolean + */ + public $isMissingCreatives; + + /** + * @access public + * @var SetTopBoxInfo + */ + public $setTopBoxDisplayInfo; + + /** + * @access public + * @var Goal + */ + public $primaryGoal; + + /** + * @access public + * @var Goal[] + */ + public $secondaryGoals; + + /** + * @access public + * @var GrpSettings + */ + public $grpSettings; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = 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, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = 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->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; + $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->isSetTopBoxEnabled = $isSetTopBoxEnabled; + $this->isMissingCreatives = $isMissingCreatives; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PauseLineItems", false)) { + /** + * The action used for pausing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PauseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PauseLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReleaseLineItems", false)) { + /** + * The action used for releasing {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReleaseLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReleaseLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReserveLineItems", false)) { + /** + * The action used for reserving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReserveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReserveLineItems"; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("ResumeLineItems", false)) { + /** + * The action used for resuming {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ResumeLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ResumeLineItems"; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxInfo", false)) { + /** + * Contains data used to display information synchronized with Canoe for set-top box enabled + * {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxInfo"; + + /** + * @access public + * @var tnsSetTopBoxSyncStatus + */ + public $syncStatus; + + /** + * @access public + * @var tnsCanoeSyncResult + */ + public $lastSyncResult; + + /** + * @access public + * @var string + */ + public $lastSyncCanoeResponseMessage; + + /** + * @access public + * @var string + */ + public $nielsenProductCategoryCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($syncStatus = null, $lastSyncResult = null, $lastSyncCanoeResponseMessage = null, $nielsenProductCategoryCode = null) { + $this->syncStatus = $syncStatus; + $this->lastSyncResult = $lastSyncResult; + $this->lastSyncCanoeResponseMessage = $lastSyncCanoeResponseMessage; + $this->nielsenProductCategoryCode = $nielsenProductCategoryCode; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Stats", false)) { + /** + * {@code Stats} contains trafficking statistics for {@link LineItem} and + * {@link LineItemCreativeAssociation} objects + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Stats { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Technology", false)) { + /** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeOfDay", false)) { + /** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hour = null, $minute = null) { + $this->hour = $hour; + $this->minute = $minute; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveLineItems", false)) { + /** + * The action used for unarchiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CanoeSyncResult", false)) { + /** + * Represents sync result types between set-top box enabled {@link LineItem line items} and Canoe. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CanoeSyncResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CanoeSyncResult"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClickTrackingLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanionDeliveryOption", false)) { + /** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanionDeliveryOption"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyCreditStatusErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ComputedStatus", false)) { + /** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ComputedStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { + /** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CostType", false)) { + /** + * Describes the {@link LineItem} actions that are billable. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CostType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CostType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeRotationType", false)) { + /** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeRotationType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSizeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayOfWeek"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryTimeZone", false)) { + /** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryTimeZone"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryRateType", false)) { + /** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryRateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GoalType", false)) { + /** + * Specifies the type of the goal for a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GoalType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GoalType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpProvider", false)) { + /** + * Represents available GRP providers that a line item will have its target demographic measured by. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpProvider { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpProvider"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpTargetGender", false)) { + /** + * Represents the target gender for a GRP demographic targeted line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpTargetGender { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpTargetGender"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemDiscountType", false)) { + /** + * Describes the possible discount types on the cost of booking a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemDiscountType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemDiscountType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemFlightDateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemSummaryReservationStatus", false)) { + /** + * Specifies the reservation status of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemSummaryReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemSummary.ReservationStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MinuteOfHour", false)) { + /** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MinuteOfHour"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativePersistenceType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativePersistenceType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { + /** + * Reason for set-top box error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxSyncStatus", false)) { + class SetTopBoxSyncStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxSyncStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class StartDateTimeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StartDateTimeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnitType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItems = null) { + $this->lineItems = $lineItems; + } + + } +} + +if (!class_exists("CreateLineItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 propertyEntity property
    CostType{@link LineItem#costType}
    CreationDateTime{@link LineItem#creationDateTime}
    DeliveryRateType{@link LineItem#deliveryRateType}
    EndDateTime{@link LineItem#endDateTime}
    ExternalId{@link LineItem#externalId}
    Id{@link LineItem#id}
    IsMissingCreatives{@link LineItem#isMissingCreatives}
    IsSetTopBoxEnabled{@link LineItem#isSetTopBoxEnabled}
    LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
    LineItemType{@link LineItem#lineItemType}
    Name{@link LineItem#name}
    OrderId{@link LineItem#orderId}
    StartDateTime{@link LineItem#startDateTime}
    Status{@link LineItem#status}
    Targeting{@link LineItem#targeting}
    UnitsBought{@link LineItem#unitsBought}
    + * @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 v201505 + */ + class GetLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetLineItemsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItemAction = null, $filterStatement = null) { + $this->lineItemAction = $lineItemAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformLineItemActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateLineItems", false)) { + /** + * Updates the specified {@link LineItem} objects. + * + * @param lineItems the line items to update + * @return the updated line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItem[] + */ + public $lineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($lineItems = null) { + $this->lineItems = $lineItems; + } + + } +} + +if (!class_exists("UpdateLineItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateLineItems", false)) { + /** + * The action used for activating {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveLineItems", false)) { + /** + * The action used for archiving {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeleteLineItems", false)) { + /** + * The action used for deleting {@link LineItem} objects. A line item can be + * deleted if it has never been eligible to serve. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteLineItems extends LineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class LineItem extends LineItemSummary { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItem"; + + /** + * @access public + * @var Targeting + */ + public $targeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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, $costPerUnit = null, $valueCostPerUnit = null, $costType = null, $discountType = null, $discount = null, $contractedUnitsBought = null, $creativePlaceholders = null, $activityAssociations = null, $targetPlatform = null, $environmentType = null, $companionDeliveryOption = null, $creativePersistenceType = null, $allowOverbook = null, $skipInventoryCheck = null, $skipCrossSellingRuleWarningChecks = 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, $isSetTopBoxEnabled = null, $isMissingCreatives = null, $setTopBoxDisplayInfo = null, $primaryGoal = null, $secondaryGoals = null, $grpSettings = 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->costPerUnit = $costPerUnit; + $this->valueCostPerUnit = $valueCostPerUnit; + $this->costType = $costType; + $this->discountType = $discountType; + $this->discount = $discount; + $this->contractedUnitsBought = $contractedUnitsBought; + $this->creativePlaceholders = $creativePlaceholders; + $this->activityAssociations = $activityAssociations; + $this->targetPlatform = $targetPlatform; + $this->environmentType = $environmentType; + $this->companionDeliveryOption = $companionDeliveryOption; + $this->creativePersistenceType = $creativePersistenceType; + $this->allowOverbook = $allowOverbook; + $this->skipInventoryCheck = $skipInventoryCheck; + $this->skipCrossSellingRuleWarningChecks = $skipCrossSellingRuleWarningChecks; + $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->isSetTopBoxEnabled = $isSetTopBoxEnabled; + $this->isMissingCreatives = $isMissingCreatives; + $this->setTopBoxDisplayInfo = $setTopBoxDisplayInfo; + $this->primaryGoal = $primaryGoal; + $this->secondaryGoals = $secondaryGoals; + $this->grpSettings = $grpSettings; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("ReserveAndOverbookLineItems", false)) { + /** + * The action used for reserving and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReserveAndOverbookLineItems extends ReserveLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReserveAndOverbookLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("ResumeAndOverbookLineItems", false)) { + /** + * The action used for resuming and overbooking {@link LineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ResumeAndOverbookLineItems extends ResumeLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ResumeAndOverbookLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("LineItemService", false)) { + /** + * LineItemService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/LineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/LineItemService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateLineItems" => "ActivateLineItems", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveLineItems" => "ArchiveLineItems", + "AudienceExtensionError" => "AudienceExtensionError", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CreativePlaceholder" => "CreativePlaceholder", + "CrossSellError" => "CrossSellError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "Goal" => "Goal", + "GrpSettings" => "GrpSettings", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemAction" => "LineItemAction", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemActivityAssociation" => "LineItemActivityAssociation", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItem" => "LineItem", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemPage" => "LineItemPage", + "LineItemSummary" => "LineItemSummary", + "Location" => "DfpLocation", + "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", + "ProgrammaticError" => "ProgrammaticError", + "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", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetTopBoxInfo" => "SetTopBoxInfo", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "Stats" => "Stats", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "Technology" => "Technology", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", + "TypeError" => "TypeError", + "UnarchiveLineItems" => "UnarchiveLineItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CanoeSyncResult" => "CanoeSyncResult", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanionDeliveryOption" => "CompanionDeliveryOption", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ComputedStatus" => "ComputedStatus", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CostType" => "CostType", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CreativeSizeType" => "CreativeSizeType", + "CrossSellError.Reason" => "CrossSellErrorReason", + "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", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", + "GrpProvider" => "GrpProvider", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "GrpTargetGender" => "GrpTargetGender", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemDiscountType" => "LineItemDiscountType", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemSummary.ReservationStatus" => "LineItemSummaryReservationStatus", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "CreativePersistenceType" => "CreativePersistenceType", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", + "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", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "SetTopBoxSyncStatus" => "SetTopBoxSyncStatus", + "StartDateTimeType" => "StartDateTimeType", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createLineItems" => "CreateLineItems", + "createLineItemsResponse" => "CreateLineItemsResponse", + "getLineItemsByStatement" => "GetLineItemsByStatement", + "getLineItemsByStatementResponse" => "GetLineItemsByStatementResponse", + "performLineItemAction" => "PerformLineItemAction", + "performLineItemActionResponse" => "PerformLineItemActionResponse", + "updateLineItems" => "UpdateLineItems", + "updateLineItemsResponse" => "UpdateLineItemsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateLineItems($lineItems); + $result = $this->__soapCall("createLineItems", array($args)); + 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 propertyEntity property
    CostType{@link LineItem#costType}
    CreationDateTime{@link LineItem#creationDateTime}
    DeliveryRateType{@link LineItem#deliveryRateType}
    EndDateTime{@link LineItem#endDateTime}
    ExternalId{@link LineItem#externalId}
    Id{@link LineItem#id}
    IsMissingCreatives{@link LineItem#isMissingCreatives}
    IsSetTopBoxEnabled{@link LineItem#isSetTopBoxEnabled}
    LastModifiedDateTime{@link LineItem#lastModifiedDateTime}
    LineItemType{@link LineItem#lineItemType}
    Name{@link LineItem#name}
    OrderId{@link LineItem#orderId}
    StartDateTime{@link LineItem#startDateTime}
    Status{@link LineItem#status}
    Targeting{@link LineItem#targeting}
    UnitsBought{@link LineItem#unitsBought}
    + * @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) { + $args = new GetLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getLineItemsByStatement", array($args)); + 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) { + $args = new PerformLineItemAction($lineItemAction, $filterStatement); + $result = $this->__soapCall("performLineItemAction", array($args)); + 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) { + $args = new UpdateLineItems($lineItems); + $result = $this->__soapCall("updateLineItems", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/LineItemTemplateService.php b/src/Google/Api/Ads/Dfp/v201505/LineItemTemplateService.php new file mode 100755 index 000000000..12882ee1f --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/LineItemTemplateService.php @@ -0,0 +1,5850 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AudienceExtensionError", false)) { + /** + * Errors associated with audience extension enabled line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError"; + + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError"; + + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyCreditStatusError", false)) { + /** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError"; + + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentMetadataTargetingError", false)) { + /** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError"; + + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("DayPartTargetingError", false)) { + /** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FrequencyCapError", false)) { + /** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GeoTargetingError", false)) { + /** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargetingError", false)) { + /** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError"; + + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError"; + + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemTemplate", false)) { + /** + * Represents the template that populates the fields of a new line item being + * created. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class LineItemTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UserDomainTargetingError", false)) { + /** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClickTrackingLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyCreditStatusErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { + /** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeRotationType", false)) { + /** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeRotationType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryRateType", false)) { + /** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryRateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemFlightDateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { + /** + * Reason for set-top box error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetLineItemTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetLineItemTemplatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLineItemTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LineItemTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("LineItemTemplateService", false)) { + /** + * LineItemTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "LineItemTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/LineItemTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/LineItemTemplateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceExtensionError" => "AudienceExtensionError", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "CreativeError" => "CreativeError", + "CrossSellError" => "CrossSellError", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "LineItemTemplate" => "LineItemTemplate", + "LineItemTemplatePage" => "LineItemTemplatePage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderError" => "OrderError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CreativeRotationType" => "CreativeRotationType", + "CrossSellError.Reason" => "CrossSellErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "DeliveryRateType" => "DeliveryRateType", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", + "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", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", + "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", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TargetPlatform" => "TargetPlatform", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "getLineItemTemplatesByStatement" => "GetLineItemTemplatesByStatement", + "getLineItemTemplatesByStatementResponse" => "GetLineItemTemplatesByStatementResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetLineItemTemplatesByStatement($filterStatement); + $result = $this->__soapCall("getLineItemTemplatesByStatement", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/LiveStreamEventService.php b/src/Google/Api/Ads/Dfp/v201505/LiveStreamEventService.php new file mode 100755 index 000000000..6c3c22605 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/LiveStreamEventService.php @@ -0,0 +1,3431 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LiveStreamEventAction", false)) { + /** + * Represents the actions that can be performed on {@link LiveStreamEvent} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LiveStreamEventActionError", false)) { + /** + * Lists all errors associated with live stream event action. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventActionError"; + + /** + * @access public + * @var tnsLiveStreamEventActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LiveStreamEventDateTimeError", false)) { + /** + * Lists all errors associated with live stream event start and end date times. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventDateTimeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventDateTimeError"; + + /** + * @access public + * @var tnsLiveStreamEventDateTimeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LiveStreamEvent", false)) { + /** + * A {@code LiveStreamEvent} represents schedule, content and ad stitching + * information of a live stream event. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEvent { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEvent"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var tnsLiveStreamEventStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var integer + */ + public $totalEstimatedConcurrentUsers; + + /** + * @access public + * @var string[] + */ + public $contentUrls; + + /** + * @access public + * @var string[] + */ + public $adTags; + + /** + * @access public + * @var string + */ + public $liveStreamEventCode; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $description = null, $status = null, $creationDateTime = null, $lastModifiedDateTime = null, $startDateTime = null, $endDateTime = null, $totalEstimatedConcurrentUsers = null, $contentUrls = null, $adTags = null, $liveStreamEventCode = null) { + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->status = $status; + $this->creationDateTime = $creationDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->totalEstimatedConcurrentUsers = $totalEstimatedConcurrentUsers; + $this->contentUrls = $contentUrls; + $this->adTags = $adTags; + $this->liveStreamEventCode = $liveStreamEventCode; + } + + } +} + +if (!class_exists("LiveStreamEventPage", false)) { + /** + * Captures a page of {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PauseLiveStreamEventAds", false)) { + /** + * The action used for pausing ads for {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PauseLiveStreamEventAds extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PauseLiveStreamEventAds"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PauseLiveStreamEvents", false)) { + /** + * The action used for pausing {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PauseLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PauseLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LiveStreamEventActionErrorReason", false)) { + /** + * Describes reasons for {@code LiveStreamEventActionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LiveStreamEventDateTimeErrorReason", false)) { + /** + * Describes reasons for {@code LiveStreamEventDateTimeError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventDateTimeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventDateTimeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LiveStreamEventStatus", false)) { + /** + * Describes the status of a {@link LiveStreamEvent} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LiveStreamEventStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateLiveStreamEvents", false)) { + /** + * Creates new {@link LiveStreamEvent} objects. + * + * The following fields are required: + *
      + *
    • {@link LiveStreamEvent#name}
    • + *
    • {@link LiveStreamEvent#startDateTime}
    • + *
    • {@link LiveStreamEvent#endDateTime}
    • + *
    • {@link LiveStreamEvent#contentUrls}
    • + *
    • {@link LiveStreamEvent#adTags}
    • + *
    + * + * @param liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateLiveStreamEvents { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $liveStreamEvents; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; + } + + } +} + +if (!class_exists("CreateLiveStreamEventsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateLiveStreamEventsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetLiveStreamEventsByStatement", false)) { + /** + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link LiveStreamEvent#id}
    + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of live stream events + * @return the live stream events that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLiveStreamEventsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetLiveStreamEventsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetLiveStreamEventsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEventPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformLiveStreamEventAction", false)) { + /** + * Performs actions on {@link LiveStreamEvent} objects that match the given + * {@link Statement#query}. + * + * @param liveStreamEventAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of live stream events + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformLiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEventAction + */ + public $liveStreamEventAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($liveStreamEventAction = null, $filterStatement = null) { + $this->liveStreamEventAction = $liveStreamEventAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformLiveStreamEventActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformLiveStreamEventActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateLiveStreamEvents", false)) { + /** + * Updates the specified {@link LiveStreamEvent} objects. + * + * @param liveStreamEvents the live stream events to update + * @return the updated live stream events + * @throws ApiException if there is an error updating the live stream events + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLiveStreamEvents { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $liveStreamEvents; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($liveStreamEvents = null) { + $this->liveStreamEvents = $liveStreamEvents; + } + + } +} + +if (!class_exists("UpdateLiveStreamEventsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateLiveStreamEventsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var LiveStreamEvent[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateLiveStreamEvents", false)) { + /** + * The action used for activating {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveLiveStreamEvents", false)) { + /** + * The action used for archiving {@link LiveStreamEvent} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveLiveStreamEvents extends LiveStreamEventAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveLiveStreamEvents"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("LiveStreamEventService", false)) { + /** + * LiveStreamEventService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LiveStreamEventService extends DfpSoapClient { + + const SERVICE_NAME = "LiveStreamEventService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/LiveStreamEventService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/LiveStreamEventService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateLiveStreamEvents" => "ActivateLiveStreamEvents", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveLiveStreamEvents" => "ArchiveLiveStreamEvents", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LiveStreamEventAction" => "LiveStreamEventAction", + "LiveStreamEventActionError" => "LiveStreamEventActionError", + "LiveStreamEventDateTimeError" => "LiveStreamEventDateTimeError", + "LiveStreamEvent" => "LiveStreamEvent", + "LiveStreamEventPage" => "LiveStreamEventPage", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PauseLiveStreamEventAds" => "PauseLiveStreamEventAds", + "PauseLiveStreamEvents" => "PauseLiveStreamEvents", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LiveStreamEventActionError.Reason" => "LiveStreamEventActionErrorReason", + "LiveStreamEventDateTimeError.Reason" => "LiveStreamEventDateTimeErrorReason", + "LiveStreamEventStatus" => "LiveStreamEventStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createLiveStreamEvents" => "CreateLiveStreamEvents", + "createLiveStreamEventsResponse" => "CreateLiveStreamEventsResponse", + "getLiveStreamEventsByStatement" => "GetLiveStreamEventsByStatement", + "getLiveStreamEventsByStatementResponse" => "GetLiveStreamEventsByStatementResponse", + "performLiveStreamEventAction" => "PerformLiveStreamEventAction", + "performLiveStreamEventActionResponse" => "PerformLiveStreamEventActionResponse", + "updateLiveStreamEvents" => "UpdateLiveStreamEvents", + "updateLiveStreamEventsResponse" => "UpdateLiveStreamEventsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link LiveStreamEvent} objects. + * + * The following fields are required: + *

      + *
    • {@link LiveStreamEvent#name}
    • + *
    • {@link LiveStreamEvent#startDateTime}
    • + *
    • {@link LiveStreamEvent#endDateTime}
    • + *
    • {@link LiveStreamEvent#contentUrls}
    • + *
    • {@link LiveStreamEvent#adTags}
    • + *
    + * + * @param liveStreamEvents the live stream events to create + * @return the created live stream events with their IDs filled in + */ + public function createLiveStreamEvents($liveStreamEvents) { + $args = new CreateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("createLiveStreamEvents", array($args)); + return $result->rval; + } + /** + * Gets a {@link LiveStreamEventPage} of {@link LiveStreamEvent} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link LiveStreamEvent#id}
    + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of live stream events + * @return the live stream events that match the filter + */ + public function getLiveStreamEventsByStatement($filterStatement) { + $args = new GetLiveStreamEventsByStatement($filterStatement); + $result = $this->__soapCall("getLiveStreamEventsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link LiveStreamEvent} objects that match the given + * {@link Statement#query}. + * + * @param liveStreamEventAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of live stream events + * @return the result of the action performed + */ + public function performLiveStreamEventAction($liveStreamEventAction, $filterStatement) { + $args = new PerformLiveStreamEventAction($liveStreamEventAction, $filterStatement); + $result = $this->__soapCall("performLiveStreamEventAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link LiveStreamEvent} objects. + * + * @param liveStreamEvents the live stream events to update + * @return the updated live stream events + * @throws ApiException if there is an error updating the live stream events + */ + public function updateLiveStreamEvents($liveStreamEvents) { + $args = new UpdateLiveStreamEvents($liveStreamEvents); + $result = $this->__soapCall("updateLiveStreamEvents", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/NetworkService.php b/src/Google/Api/Ads/Dfp/v201505/NetworkService.php new file mode 100755 index 000000000..6e36aebdf --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/NetworkService.php @@ -0,0 +1,2653 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Network", false)) { + /** + * {@code Network} represents a network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Network { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class NetworkError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NetworkError"; + + /** + * @access public + * @var tnsNetworkErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PrecisionError", false)) { + /** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError"; + + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NetworkErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NetworkErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NetworkError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PrecisionErrorReason", false)) { + /** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAllNetworks { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetAllNetworksResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAllNetworksResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Network[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetCurrentNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetCurrentNetworkResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCurrentNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class MakeTestNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MakeTestNetworkResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MakeTestNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateNetwork { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Network + */ + public $network; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($network = null) { + $this->network = $network; + } + + } +} + +if (!class_exists("UpdateNetworkResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateNetworkResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Network + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("NetworkService", false)) { + /** + * NetworkService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NetworkService extends DfpSoapClient { + + const SERVICE_NAME = "NetworkService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/NetworkService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/NetworkService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ExchangeRateError" => "ExchangeRateError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "Network" => "Network", + "NetworkError" => "NetworkError", + "NotNullError" => "NotNullError", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ServerError" => "ServerError", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "PrecisionError.Reason" => "PrecisionErrorReason", + "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", + "getAllNetworks" => "GetAllNetworks", + "getAllNetworksResponse" => "GetAllNetworksResponse", + "getCurrentNetwork" => "GetCurrentNetwork", + "getCurrentNetworkResponse" => "GetCurrentNetworkResponse", + "makeTestNetwork" => "MakeTestNetwork", + "makeTestNetworkResponse" => "MakeTestNetworkResponse", + "updateNetwork" => "UpdateNetwork", + "updateNetworkResponse" => "UpdateNetworkResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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() { + $args = new GetAllNetworks(); + $result = $this->__soapCall("getAllNetworks", array($args)); + 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() { + $args = new GetCurrentNetwork(); + $result = $this->__soapCall("getCurrentNetwork", array($args)); + 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() { + $args = new MakeTestNetwork(); + $result = $this->__soapCall("makeTestNetwork", array($args)); + 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) { + $args = new UpdateNetwork($network); + $result = $this->__soapCall("updateNetwork", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/OrderService.php b/src/Google/Api/Ads/Dfp/v201505/OrderService.php new file mode 100755 index 000000000..363efbcad --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/OrderService.php @@ -0,0 +1,7513 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AudienceExtensionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError"; + + /** + * @access public + * @var tnsAudienceExtensionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +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 v201505 + */ + class ClickTrackingLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError"; + + /** + * @access public + * @var tnsClickTrackingLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CompanyCreditStatusError", false)) { + /** + * Lists all errors due to {@link Company#creditStatus}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError"; + + /** + * @access public + * @var tnsCompanyCreditStatusErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ContentMetadataTargetingError", false)) { + /** + * Lists all errors related to {@link ContentMetadataTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError"; + + /** + * @access public + * @var tnsContentMetadataTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CrossSellError", false)) { + /** + * Lists all errors associated with cross selling. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError"; + + /** + * @access public + * @var tnsCrossSellErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DateTimeRangeTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError"; + + /** + * @access public + * @var tnsDateTimeRangeTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("DayPartTargetingError", false)) { + /** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FrequencyCapError", false)) { + /** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GeoTargetingError", false)) { + /** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GrpSettingsError", false)) { + /** + * Errors associated with line items with GRP settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError"; + + /** + * @access public + * @var tnsGrpSettingsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ImageError", false)) { + /** + * Lists all errors associated with images. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError"; + + /** + * @access public + * @var tnsImageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargetingError", false)) { + /** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemActivityAssociationError", false)) { + /** + * Errors specific to associating activities to line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError"; + + /** + * @access public + * @var tnsLineItemActivityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemCreativeAssociationError", false)) { + /** + * Lists all errors associated with line item-to-creative association dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError"; + + /** + * @access public + * @var tnsLineItemCreativeAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemError", false)) { + /** + * A catch-all error that lists all generic errors associated with LineItem. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError"; + + /** + * @access public + * @var tnsLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError"; + + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OrderAction", false)) { + /** + * Represents the actions that can be performed on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderActionError", false)) { + /** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderActionError"; + + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class Order { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 boolean + */ + public $isProgrammatic; + + /** + * @access public + * @var ProgrammaticSettings + */ + public $programmaticSettings; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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, $isProgrammatic = null, $programmaticSettings = 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->isProgrammatic = $isProgrammatic; + $this->programmaticSettings = $programmaticSettings; + $this->appliedTeamIds = $appliedTeamIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->customFieldValues = $customFieldValues; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OrderPage", false)) { + /** + * Captures a page of {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class PauseOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PauseOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticError", false)) { + /** + * Errors associated with programmatic line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError"; + + /** + * @access public + * @var tnsProgrammaticErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProgrammaticSettings", false)) { + /** + * Represents the additional settings of a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticSettings { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticSettings"; + + /** + * @access public + * @var integer + */ + public $adxBuyerNetworkId; + + /** + * @access public + * @var integer + */ + public $buyerId; + + /** + * @access public + * @var tnsBuyerPlatform + */ + public $buyerPlatform; + + /** + * @access public + * @var tnsBillingTermsType + */ + public $billingTermsType; + + /** + * @access public + * @var tnsProgrammaticStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($adxBuyerNetworkId = null, $buyerId = null, $buyerPlatform = null, $billingTermsType = null, $status = null) { + $this->adxBuyerNetworkId = $adxBuyerNetworkId; + $this->buyerId = $buyerId; + $this->buyerPlatform = $buyerPlatform; + $this->billingTermsType = $billingTermsType; + $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 v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ResumeOrders", false)) { + /** + * The action used for resuming {@link Order} objects. {@link LineItem} objects within + * the order that are eligble to resume will resume as well. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ResumeOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ResumeOrders"; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("RetractOrders", false)) { + /** + * The action used for retracting {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RetractOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RetractOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class RetractOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RetractOrdersWithoutReservationChanges"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentError", false)) { + /** + * Errors that could occur on audience segment related requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError"; + + /** + * @access public + * @var tnsAudienceSegmentErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SetTopBoxLineItemError", false)) { + /** + * Errors associated with set-top box {@link LineItem line items}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError"; + + /** + * @access public + * @var tnsSetTopBoxLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SubmitOrdersForApproval extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SubmitOrdersForApproval"; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("SubmitOrdersForApprovalAndOverbook", false)) { + /** + * The action used for submitting and overbooking {@link Order} objects for approval. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SubmitOrdersForApprovalAndOverbook extends SubmitOrdersForApproval { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SubmitOrdersForApprovalAndOverbook"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +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 v201505 + */ + class SubmitOrdersForApprovalWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SubmitOrdersForApprovalWithoutReservationChanges"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeError", false)) { + /** + * Lists all errors associated with template instantiated creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError"; + + /** + * @access public + * @var tnsTemplateInstantiatedCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveOrders", false)) { + /** + * The action used for unarchiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserDomainTargetingError", false)) { + /** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceExtensionErrorReason", false)) { + /** + * Specific audience extension error reasons. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceExtensionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceExtensionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingTermsType", false)) { + /** + * Describes the billing terms for a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingTermsType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingTermsType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BuyerPlatform", false)) { + /** + * Describes the buyer platform for a programmatic order. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BuyerPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BuyerPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClickTrackingLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ClickTrackingLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ClickTrackingLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanyCreditStatusErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanyCreditStatusErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanyCreditStatusError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ContentMetadataTargetingErrorReason", false)) { + /** + * The reasons for the metadata targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ContentMetadataTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CrossSellErrorReason", false)) { + /** + * The reason of the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CrossSellErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CrossSellError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateTimeRangeTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for date time range targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeRangeTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeRangeTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GrpSettingsErrorReason", false)) { + /** + * Reason for GRP settings error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GrpSettingsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GrpSettingsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ImageErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ImageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ImageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemActivityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemActivityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemActivityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemCreativeAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemCreativeAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemCreativeAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemFlightDateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderStatus", false)) { + /** + * Describes the order statuses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProgrammaticErrorReason", false)) { + /** + * Audience extension is not supported by programmatic line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProgrammaticStatus", false)) { + /** + * Describes the programmatic statuses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProgrammaticStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProgrammaticStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentErrorReason", false)) { + /** + * Reason of the given {@link AudienceSegmentError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SetTopBoxLineItemErrorReason", false)) { + /** + * Reason for set-top box error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetTopBoxLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetTopBoxLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TemplateInstantiatedCreativeErrorReason", false)) { + /** + * The reason for the error + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TemplateInstantiatedCreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TemplateInstantiatedCreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($orders = null) { + $this->orders = $orders; + } + + } +} + +if (!class_exists("CreateOrdersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetOrdersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetOrdersByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetOrdersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var OrderPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformOrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($orderAction = null, $filterStatement = null) { + $this->orderAction = $orderAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformOrderActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformOrderActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateOrders", false)) { + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Order[] + */ + public $orders; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($orders = null) { + $this->orders = $orders; + } + + } +} + +if (!class_exists("UpdateOrdersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateOrdersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Order[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +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 v201505 + */ + class ApproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveOrders"; + + /** + * @access public + * @var boolean + */ + public $skipInventoryCheck; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +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 v201505 + */ + class ApproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveOrdersWithoutReservationChanges"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ArchiveOrders", false)) { + /** + * The action used for archiving {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeleteOrders", false)) { + /** + * The action used for deleting {@link Order} objects. All line items within + * that order are also deleted. Orders can only be deleted if none of its line + * items have been eligible to serve. This action can be used to delete + * proposed orders and line items if they are no longer valid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class DisapproveOrders extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DisapproveOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class DisapproveOrdersWithoutReservationChanges extends OrderAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DisapproveOrdersWithoutReservationChanges"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class ResumeAndOverbookOrders extends ResumeOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ResumeAndOverbookOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class ApproveAndOverbookOrders extends ApproveOrders { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveAndOverbookOrders"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($skipInventoryCheck = null) { + parent::__construct(); + $this->skipInventoryCheck = $skipInventoryCheck; + } + + } +} + +if (!class_exists("OrderService", false)) { + /** + * OrderService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderService extends DfpSoapClient { + + const SERVICE_NAME = "OrderService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/OrderService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/OrderService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ApproveAndOverbookOrders" => "ApproveAndOverbookOrders", + "ApproveOrders" => "ApproveOrders", + "ApproveOrdersWithoutReservationChanges" => "ApproveOrdersWithoutReservationChanges", + "ArchiveOrders" => "ArchiveOrders", + "AudienceExtensionError" => "AudienceExtensionError", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "ClickTrackingLineItemError" => "ClickTrackingLineItemError", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CompanyCreditStatusError" => "CompanyCreditStatusError", + "ContentMetadataTargetingError" => "ContentMetadataTargetingError", + "CreativeError" => "CreativeError", + "CrossSellError" => "CrossSellError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeRangeTargetingError" => "DateTimeRangeTargetingError", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "DeleteOrders" => "DeleteOrders", + "DisapproveOrders" => "DisapproveOrders", + "DisapproveOrdersWithoutReservationChanges" => "DisapproveOrdersWithoutReservationChanges", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "GrpSettingsError" => "GrpSettingsError", + "ImageError" => "ImageError", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemActivityAssociationError" => "LineItemActivityAssociationError", + "LineItemCreativeAssociationError" => "LineItemCreativeAssociationError", + "LineItemError" => "LineItemError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OrderAction" => "OrderAction", + "OrderActionError" => "OrderActionError", + "Order" => "Order", + "OrderError" => "OrderError", + "OrderPage" => "OrderPage", + "ParseError" => "ParseError", + "PauseOrders" => "PauseOrders", + "PermissionError" => "PermissionError", + "ProgrammaticError" => "ProgrammaticError", + "ProgrammaticSettings" => "ProgrammaticSettings", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "RequiredSizeError" => "RequiredSizeError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResumeAndOverbookOrders" => "ResumeAndOverbookOrders", + "ResumeOrders" => "ResumeOrders", + "RetractOrders" => "RetractOrders", + "RetractOrdersWithoutReservationChanges" => "RetractOrdersWithoutReservationChanges", + "AudienceSegmentError" => "AudienceSegmentError", + "ServerError" => "ServerError", + "SetTopBoxLineItemError" => "SetTopBoxLineItemError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "SubmitOrdersForApproval" => "SubmitOrdersForApproval", + "SubmitOrdersForApprovalAndOverbook" => "SubmitOrdersForApprovalAndOverbook", + "SubmitOrdersForApprovalWithoutReservationChanges" => "SubmitOrdersForApprovalWithoutReservationChanges", + "TeamError" => "TeamError", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TemplateInstantiatedCreativeError" => "TemplateInstantiatedCreativeError", + "TextValue" => "TextValue", + "TimeZoneError" => "TimeZoneError", + "TypeError" => "TypeError", + "UnarchiveOrders" => "UnarchiveOrders", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AudienceExtensionError.Reason" => "AudienceExtensionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillingTermsType" => "BillingTermsType", + "BuyerPlatform" => "BuyerPlatform", + "ClickTrackingLineItemError.Reason" => "ClickTrackingLineItemErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CompanyCreditStatusError.Reason" => "CompanyCreditStatusErrorReason", + "ContentMetadataTargetingError.Reason" => "ContentMetadataTargetingErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CrossSellError.Reason" => "CrossSellErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DateTimeRangeTargetingError.Reason" => "DateTimeRangeTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GrpSettingsError.Reason" => "GrpSettingsErrorReason", + "ImageError.Reason" => "ImageErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidEmailError.Reason" => "InvalidEmailErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemActivityAssociationError.Reason" => "LineItemActivityAssociationErrorReason", + "LineItemCreativeAssociationError.Reason" => "LineItemCreativeAssociationErrorReason", + "LineItemError.Reason" => "LineItemErrorReason", + "LineItemFlightDateError.Reason" => "LineItemFlightDateErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "OrderActionError.Reason" => "OrderActionErrorReason", + "OrderError.Reason" => "OrderErrorReason", + "OrderStatus" => "OrderStatus", + "ParseError.Reason" => "ParseErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProgrammaticError.Reason" => "ProgrammaticErrorReason", + "ProgrammaticStatus" => "ProgrammaticStatus", + "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", + "AudienceSegmentError.Reason" => "AudienceSegmentErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SetTopBoxLineItemError.Reason" => "SetTopBoxLineItemErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TemplateInstantiatedCreativeError.Reason" => "TemplateInstantiatedCreativeErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createOrders" => "CreateOrders", + "createOrdersResponse" => "CreateOrdersResponse", + "getOrdersByStatement" => "GetOrdersByStatement", + "getOrdersByStatementResponse" => "GetOrdersByStatementResponse", + "performOrderAction" => "PerformOrderAction", + "performOrderActionResponse" => "PerformOrderActionResponse", + "updateOrders" => "UpdateOrders", + "updateOrdersResponse" => "UpdateOrdersResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Order} objects. + * + * @param orders the orders to create + * @return the created orders with their IDs filled in + */ + public function createOrders($orders) { + $args = new CreateOrders($orders); + $result = $this->__soapCall("createOrders", array($args)); + 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) { + $args = new GetOrdersByStatement($filterStatement); + $result = $this->__soapCall("getOrdersByStatement", array($args)); + 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) { + $args = new PerformOrderAction($orderAction, $filterStatement); + $result = $this->__soapCall("performOrderAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Order} objects. + * + * @param orders the orders to update + * @return the updated orders + */ + public function updateOrders($orders) { + $args = new UpdateOrders($orders); + $result = $this->__soapCall("updateOrders", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/PackageService.php b/src/Google/Api/Ads/Dfp/v201505/PackageService.php new file mode 100755 index 000000000..87bbfdca0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/PackageService.php @@ -0,0 +1,4768 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AvailableBillingError", false)) { + /** + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError"; + + /** + * @access public + * @var tnsAvailableBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BillingError", false)) { + /** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError"; + + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DayPartTargetingError", false)) { + /** + * Lists all errors associated with day-part targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FrequencyCapError", false)) { + /** + * Lists all errors associated with frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GeoTargetingError", false)) { + /** + * Lists all errors associated with geographical targeting for a + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargetingError", false)) { + /** + * Lists all inventory errors caused by associating a line item with a targeting + * expression. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PackageAction", false)) { + /** + * Represents the actions that can be performed on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageAction"; + + /** + * @access public + * @var tnsPackageOperator + */ + public $packageOperator; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packageOperator = null) { + $this->packageOperator = $packageOperator; + } + + } +} + +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Package", false)) { + /** + * A {@code Package} represents a group of proposal line items which will be sold together. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Package { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Package"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $productPackageId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * @access public + * @var tnsPackageStatus + */ + public $status; + + /** + * @access public + * @var DateTime + */ + public $startDateTime; + + /** + * @access public + * @var DateTime + */ + public $endDateTime; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $proposalId = null, $productPackageId = null, $rateCardId = null, $name = null, $comments = null, $status = null, $startDateTime = null, $endDateTime = null, $lastModifiedDateTime = null) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->productPackageId = $productPackageId; + $this->rateCardId = $rateCardId; + $this->name = $name; + $this->comments = $comments; + $this->status = $status; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PackagePage", false)) { + /** + * Captures a page of {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackagePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackagePage"; + + /** + * @access public + * @var Package[] + */ + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PrecisionError", false)) { + /** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError"; + + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductError", false)) { + /** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError"; + + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalError", false)) { + /** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError"; + + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemError", false)) { + /** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError"; + + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserDomainTargetingError", false)) { + /** + * Lists all errors related to user domain targeting for a line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageOperator", false)) { + /** + * Possible operators to be performed on a {@link Package}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageStatus", false)) { + /** + * Describes the different statuses for {@link Package}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PrecisionErrorReason", false)) { + /** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreatePackages", false)) { + /** + * Creates new {@link Package} objects. + * + * For each package, the following fields are required: + *
      + *
    • {@link Package#proposalId}
    • + *
    • {@link Package#productPackageId}
    • + *
    • {@link Package#name}
    • + *
    + * + * @param packages the packages to create + * @return the created packages with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreatePackages { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Package[] + */ + public $packages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packages = null) { + $this->packages = $packages; + } + + } +} + +if (!class_exists("CreatePackagesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreatePackagesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Package[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetPackagesByStatement", false)) { + /** + * Gets a {@link PackagePage} of {@link Package} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link Package#id}
    {@code name}{@link Package#name}
    {@code proposalId}{@link Package#proposalId}
    {@code productPackageId}{@link Package#productPackageId}
    {@code isArchived}{@link Package#isArchived}
    {@code lastModifiedDateTime}{@link Package#lastModifiedDateTime}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of packages + * @return the packages that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPackagesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetPackagesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPackagesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PackagePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformPackageAction", false)) { + /** + * Performs actions on {@link Package} objects that match the given {@link Statement}. + * + * @param packageAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of packages + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PackageAction + */ + public $packageAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packageAction = null, $filterStatement = null) { + $this->packageAction = $packageAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformPackageActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformPackageActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdatePackages", false)) { + /** + * Updates the specified {@link Package} objects. + * + * @param packages the packages to update + * @return the updated packages + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePackages { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Package[] + */ + public $packages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packages = null) { + $this->packages = $packages; + } + + } +} + +if (!class_exists("UpdatePackagesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePackagesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Package[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("CreateProposalLineItemsFromPackages", false)) { + /** + * The action used for creating proposal line items from {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProposalLineItemsFromPackages extends PackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreateProposalLineItemsFromPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($packageOperator = null) { + parent::__construct(); + $this->packageOperator = $packageOperator; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("PackageService", false)) { + /** + * PackageService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageService extends DfpSoapClient { + + const SERVICE_NAME = "PackageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/PackageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/PackageService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CreateProposalLineItemsFromPackages" => "CreateProposalLineItemsFromPackages", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPartTargetingError" => "DayPartTargetingError", + "FeatureError" => "FeatureError", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PackageAction" => "PackageAction", + "PackageActionError" => "PackageActionError", + "Package" => "Package", + "PackageError" => "PackageError", + "PackagePage" => "PackagePage", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalError" => "ProposalError", + "ProposalLineItemError" => "ProposalLineItemError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "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", + "TimeZoneError" => "TimeZoneError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingError.Reason" => "BillingErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "DayPartTargetingError.Reason" => "DayPartTargetingErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", + "PackageOperator" => "PackageOperator", + "PackageStatus" => "PackageStatus", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProposalError.Reason" => "ProposalErrorReason", + "ProposalLineItemError.Reason" => "ProposalLineItemErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ReservationDetailsError.Reason" => "ReservationDetailsErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "createPackages" => "CreatePackages", + "createPackagesResponse" => "CreatePackagesResponse", + "getPackagesByStatement" => "GetPackagesByStatement", + "getPackagesByStatementResponse" => "GetPackagesByStatementResponse", + "performPackageAction" => "PerformPackageAction", + "performPackageActionResponse" => "PerformPackageActionResponse", + "updatePackages" => "UpdatePackages", + "updatePackagesResponse" => "UpdatePackagesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Package} objects. + * + * For each package, the following fields are required: + *

      + *
    • {@link Package#proposalId}
    • + *
    • {@link Package#productPackageId}
    • + *
    • {@link Package#name}
    • + *
    + * + * @param packages the packages to create + * @return the created packages with their IDs filled in + */ + public function createPackages($packages) { + $args = new CreatePackages($packages); + $result = $this->__soapCall("createPackages", array($args)); + return $result->rval; + } + /** + * Gets a {@link PackagePage} of {@link Package} objects + * that satisfy the given {@link Statement#query}. The following fields are supported for + * filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link Package#id}
    {@code name}{@link Package#name}
    {@code proposalId}{@link Package#proposalId}
    {@code productPackageId}{@link Package#productPackageId}
    {@code isArchived}{@link Package#isArchived}
    {@code lastModifiedDateTime}{@link Package#lastModifiedDateTime}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of packages + * @return the packages that match the given filter + */ + public function getPackagesByStatement($filterStatement) { + $args = new GetPackagesByStatement($filterStatement); + $result = $this->__soapCall("getPackagesByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link Package} objects that match the given {@link Statement}. + * + * @param packageAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter a set of packages + * @return the result of the action performed + */ + public function performPackageAction($packageAction, $filterStatement) { + $args = new PerformPackageAction($packageAction, $filterStatement); + $result = $this->__soapCall("performPackageAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Package} objects. + * + * @param packages the packages to update + * @return the updated packages + */ + public function updatePackages($packages) { + $args = new UpdatePackages($packages); + $result = $this->__soapCall("updatePackages", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/PlacementService.php b/src/Google/Api/Ads/Dfp/v201505/PlacementService.php new file mode 100755 index 000000000..f5b558134 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/PlacementService.php @@ -0,0 +1,3656 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PlacementAction", false)) { + /** + * Represents the actions that can be performed on {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PlacementError", false)) { + /** + * Class defining all validation errors for a placement. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementError"; + + /** + * @access public + * @var tnsPlacementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PlacementPage", false)) { + /** + * Captures a page of {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError"; + + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SiteTargetingInfo", false)) { + /** + * Contains information required for AdWords advertisers to place their ads. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SiteTargetingInfo"; + + /** + * @access public + * @var string + */ + public $targetingDescription; + + /** + * @access public + * @var string + */ + public $targetingSiteName; + + /** + * @access public + * @var string + */ + public $targetingAdLocation; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null) { + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryStatus", false)) { + /** + * Represents the status of objects that represent inventory - ad units and + * placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PlacementErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RegExErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($placements = null) { + $this->placements = $placements; + } + + } +} + +if (!class_exists("CreatePlacementsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetPlacementsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetPlacementsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPlacementsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PlacementPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformPlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($placementAction = null, $filterStatement = null) { + $this->placementAction = $placementAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformPlacementActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformPlacementActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdatePlacements", false)) { + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePlacements { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Placement[] + */ + public $placements; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($placements = null) { + $this->placements = $placements; + } + + } +} + +if (!class_exists("UpdatePlacementsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePlacementsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Placement[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivatePlacements", false)) { + /** + * The action used for activating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivatePlacements"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchivePlacements", false)) { + /** + * The action used for archiving {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchivePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchivePlacements"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivatePlacements", false)) { + /** + * The action used for deactivating {@link Placement} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivatePlacements extends PlacementAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivatePlacements"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Placement", false)) { + /** + * A {@code Placement} groups related {@code AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Placement extends SiteTargetingInfo { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Placement"; + + /** + * @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 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $description = null, $placementCode = null, $status = null, $isAdSenseTargetingEnabled = null, $adSenseTargetingLocale = null, $targetedAdUnitIds = null, $lastModifiedDateTime = null, $targetingDescription = null, $targetingSiteName = null, $targetingAdLocation = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + $this->description = $description; + $this->placementCode = $placementCode; + $this->status = $status; + $this->isAdSenseTargetingEnabled = $isAdSenseTargetingEnabled; + $this->adSenseTargetingLocale = $adSenseTargetingLocale; + $this->targetedAdUnitIds = $targetedAdUnitIds; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->targetingDescription = $targetingDescription; + $this->targetingSiteName = $targetingSiteName; + $this->targetingAdLocation = $targetingAdLocation; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("PlacementService", false)) { + /** + * PlacementService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementService extends DfpSoapClient { + + const SERVICE_NAME = "PlacementService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/PlacementService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/PlacementService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivatePlacements" => "ActivatePlacements", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchivePlacements" => "ArchivePlacements", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivatePlacements" => "DeactivatePlacements", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PlacementAction" => "PlacementAction", + "Placement" => "Placement", + "PlacementError" => "PlacementError", + "PlacementPage" => "PlacementPage", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "RegExError" => "RegExError", + "RequiredCollectionError" => "RequiredCollectionError", + "RequiredError" => "RequiredError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SiteTargetingInfo" => "SiteTargetingInfo", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "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", + "createPlacements" => "CreatePlacements", + "createPlacementsResponse" => "CreatePlacementsResponse", + "getPlacementsByStatement" => "GetPlacementsByStatement", + "getPlacementsByStatementResponse" => "GetPlacementsByStatementResponse", + "performPlacementAction" => "PerformPlacementAction", + "performPlacementActionResponse" => "PerformPlacementActionResponse", + "updatePlacements" => "UpdatePlacements", + "updatePlacementsResponse" => "UpdatePlacementsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link Placement} objects. + * + * @param placements the placements to create + * @return the new placements, with their IDs filled in + */ + public function createPlacements($placements) { + $args = new CreatePlacements($placements); + $result = $this->__soapCall("createPlacements", array($args)); + 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) { + $args = new GetPlacementsByStatement($filterStatement); + $result = $this->__soapCall("getPlacementsByStatement", array($args)); + 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) { + $args = new PerformPlacementAction($placementAction, $filterStatement); + $result = $this->__soapCall("performPlacementAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Placement} objects. + * + * @param placements the placements to update + * @return the updated placements + */ + public function updatePlacements($placements) { + $args = new UpdatePlacements($placements); + $result = $this->__soapCall("updatePlacements", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/PremiumRateService.php b/src/Google/Api/Ads/Dfp/v201505/PremiumRateService.php new file mode 100755 index 000000000..57b5aec56 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/PremiumRateService.php @@ -0,0 +1,3608 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PremiumFeature", false)) { + /** + * A {@code PremiumFeature} represents the feature type to be applied as a premium on a + * {@link RateCard}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PremiumRate", false)) { + /** + * A premium rate holding a set of {@link PremiumRateValue} objects with the + * same {@link PremiumFeature}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRate"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var tnsPricingMethod + */ + public $pricingMethod; + + /** + * @access public + * @var PremiumFeature + */ + public $premiumFeature; + + /** + * @access public + * @var PremiumRateValue[] + */ + public $premiumRateValues; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $rateCardId = null, $pricingMethod = null, $premiumFeature = null, $premiumRateValues = null) { + $this->id = $id; + $this->rateCardId = $rateCardId; + $this->pricingMethod = $pricingMethod; + $this->premiumFeature = $premiumFeature; + $this->premiumRateValues = $premiumRateValues; + } + + } +} + +if (!class_exists("PremiumRateError", false)) { + /** + * An error having to do with {@link PremiumRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRateError"; + + /** + * @access public + * @var tnsPremiumRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PremiumRatePage", false)) { + /** + * Captures a page of {@link PremiumRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRatePage"; + + /** + * @access public + * @var PremiumRate[] + */ + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } + + } +} + +if (!class_exists("PremiumRateValue", false)) { + /** + * A premium of a {@link RateCard} which could be applied to the line item + * and charges extra. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRateValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRateValue"; + + /** + * @access public + * @var integer + */ + public $premiumRateId; + + /** + * @access public + * @var PremiumFeature + */ + public $premiumFeature; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsPremiumAdjustmentType + */ + public $adjustmentType; + + /** + * @access public + * @var integer + */ + public $adjustmentSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRateId = null, $premiumFeature = null, $rateType = null, $adjustmentType = null, $adjustmentSize = null) { + $this->premiumRateId = $premiumRateId; + $this->premiumFeature = $premiumFeature; + $this->rateType = $rateType; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("UnknownPremiumFeature", false)) { + /** + * The {@link PremiumFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnknownPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnknownPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UserDomainPremiumFeature", false)) { + /** + * A premium feature applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PremiumAdjustmentType", false)) { + /** + * Describes how to apply the adjustment to the base rate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumAdjustmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumAdjustmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PremiumRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PricingMethod", false)) { + /** + * Describes which {@link PremiumRateValue} objects from the + * {@link PremiumRate} to apply to a {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PricingMethod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PricingMethod"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreatePremiumRates", false)) { + /** + * Creates a list of new {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be created + * @return the premium rates with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreatePremiumRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $premiumRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRates = null) { + $this->premiumRates = $premiumRates; + } + + } +} + +if (!class_exists("CreatePremiumRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreatePremiumRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetPremiumRatesByStatement", false)) { + /** + * Gets a {@link PremiumRatePage} of {@link PremiumRate} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link PremiumRate#id}
    {@code rateCardId}{@link PremiumRate#rateCardId}
    {@code pricingMethod}{@link PremiumRate#pricingMethod}
    + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of premium rates. + * @return the premium rates that match the filter + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPremiumRatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetPremiumRatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetPremiumRatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdatePremiumRates", false)) { + /** + * Updates the specified {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be updated + * @return the updated premium rates + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePremiumRates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $premiumRates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRates = null) { + $this->premiumRates = $premiumRates; + } + + } +} + +if (!class_exists("UpdatePremiumRatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdatePremiumRatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var PremiumRate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdUnitPremiumFeature", false)) { + /** + * A premium feature applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("AudienceSegmentPremiumFeature", false)) { + /** + * A premium feature applied to audience segment targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentPremiumFeature"; + + /** + * @access public + * @var integer + */ + public $audienceSegmentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($audienceSegmentId = null) { + parent::__construct(); + $this->audienceSegmentId = $audienceSegmentId; + } + + } +} + +if (!class_exists("BandwidthPremiumFeature", false)) { + /** + * A premium feature applied to bandwidth targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("BrowserPremiumFeature", false)) { + /** + * A premium feature applied to browser targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BrowserLanguagePremiumFeature", false)) { + /** + * A premium feature applied to browser language targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguagePremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguagePremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("CustomTargetingPremiumFeature", false)) { + /** + * A premium feature applied to custom criteria targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingPremiumFeature"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingKeyId = null, $customTargetingValueId = null) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DaypartPremiumFeature", false)) { + /** + * A premium feature applied to daypart targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DaypartPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DaypartPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapabilityPremiumFeature", false)) { + /** + * A premium feature applied to device capability targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapabilityPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCategoryPremiumFeature", false)) { + /** + * A premium feature applied to device category targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategoryPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategoryPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceManufacturerPremiumFeature", false)) { + /** + * A premium feature applied to device manufacturer targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturerPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturerPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("FrequencyCapPremiumFeature", false)) { + /** + * A premium feature applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("GeographyPremiumFeature", false)) { + /** + * A premium feature applied to geography targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeographyPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeographyPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("MobileCarrierPremiumFeature", false)) { + /** + * A premium feature applied to mobile carrier targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrierPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystemPremiumFeature", false)) { + /** + * A premium feature applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PlacementPremiumFeature", false)) { + /** + * A premium feature applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("PremiumRateService", false)) { + /** + * PremiumRateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRateService extends DfpSoapClient { + + const SERVICE_NAME = "PremiumRateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/PremiumRateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/PremiumRateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "AdUnitPremiumFeature" => "AdUnitPremiumFeature", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AudienceSegmentPremiumFeature" => "AudienceSegmentPremiumFeature", + "AuthenticationError" => "AuthenticationError", + "BandwidthPremiumFeature" => "BandwidthPremiumFeature", + "BooleanValue" => "BooleanValue", + "BrowserPremiumFeature" => "BrowserPremiumFeature", + "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DaypartPremiumFeature" => "DaypartPremiumFeature", + "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", + "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", + "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", + "GeographyPremiumFeature" => "GeographyPremiumFeature", + "InternalApiError" => "InternalApiError", + "MobileCarrierPremiumFeature" => "MobileCarrierPremiumFeature", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystemPremiumFeature" => "OperatingSystemPremiumFeature", + "PermissionError" => "PermissionError", + "PlacementPremiumFeature" => "PlacementPremiumFeature", + "PremiumFeature" => "PremiumFeature", + "PremiumRate" => "PremiumRate", + "PremiumRateError" => "PremiumRateError", + "PremiumRatePage" => "PremiumRatePage", + "PremiumRateValue" => "PremiumRateValue", + "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", + "UnknownPremiumFeature" => "UnknownPremiumFeature", + "UserDomainPremiumFeature" => "UserDomainPremiumFeature", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "NullError.Reason" => "NullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PremiumAdjustmentType" => "PremiumAdjustmentType", + "PremiumRateError.Reason" => "PremiumRateErrorReason", + "PricingMethod" => "PricingMethod", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateType" => "RateType", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "createPremiumRates" => "CreatePremiumRates", + "createPremiumRatesResponse" => "CreatePremiumRatesResponse", + "getPremiumRatesByStatement" => "GetPremiumRatesByStatement", + "getPremiumRatesByStatementResponse" => "GetPremiumRatesByStatementResponse", + "updatePremiumRates" => "UpdatePremiumRates", + "updatePremiumRatesResponse" => "UpdatePremiumRatesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates a list of new {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be created + * @return the premium rates with their IDs filled in + */ + public function createPremiumRates($premiumRates) { + $args = new CreatePremiumRates($premiumRates); + $result = $this->__soapCall("createPremiumRates", array($args)); + return $result->rval; + } + /** + * Gets a {@link PremiumRatePage} of {@link PremiumRate} objects that + * satisfy the given {@link Statement#query}. The following fields are + * supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link PremiumRate#id}
    {@code rateCardId}{@link PremiumRate#rateCardId}
    {@code pricingMethod}{@link PremiumRate#pricingMethod}
    + * + * @param filterStatement a Publisher Query Language statement to filter a + * list of premium rates. + * @return the premium rates that match the filter + */ + public function getPremiumRatesByStatement($filterStatement) { + $args = new GetPremiumRatesByStatement($filterStatement); + $result = $this->__soapCall("getPremiumRatesByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link PremiumRate} objects. + * + * @param premiumRates the premium rates to be updated + * @return the updated premium rates + */ + public function updatePremiumRates($premiumRates) { + $args = new UpdatePremiumRates($premiumRates); + $result = $this->__soapCall("updatePremiumRates", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProductPackageItemService.php b/src/Google/Api/Ads/Dfp/v201505/ProductPackageItemService.php new file mode 100755 index 000000000..75e3b445d --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProductPackageItemService.php @@ -0,0 +1,3407 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductError", false)) { + /** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError"; + + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackageActionError", false)) { + /** + * Lists all errors for executing operations on product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageActionError"; + + /** + * @access public + * @var tnsProductPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackageItemAction", false)) { + /** + * Represents the actions that can be performed on product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageItemActionError", false)) { + /** + * Lists all errors for executing operations on product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemActionError"; + + /** + * @access public + * @var tnsProductPackageItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackageItem", false)) { + /** + * A {@code ProductPackageItem} represents a product item in a package. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItem"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $productId; + + /** + * @access public + * @var integer + */ + public $productPackageId; + + /** + * @access public + * @var boolean + */ + public $isMandatory; + + /** + * @access public + * @var tnsArchiveStatus + */ + public $archiveStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $productId = null, $productPackageId = null, $isMandatory = null, $archiveStatus = null) { + $this->id = $id; + $this->productId = $productId; + $this->productPackageId = $productPackageId; + $this->isMandatory = $isMandatory; + $this->archiveStatus = $archiveStatus; + } + + } +} + +if (!class_exists("ProductPackageItemError", false)) { + /** + * Lists all errors associated with product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemError"; + + /** + * @access public + * @var tnsProductPackageItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackageItemPage", false)) { + /** + * Captures a page of {@link ProductPackageItemDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductPackageItem[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("ProductPackageRateCardAssociationError", false)) { + /** + * Lists all errors associated with product packages rate card associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageRateCardAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageRateCardAssociationError"; + + /** + * @access public + * @var tnsProductPackageRateCardAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("UnArchiveProductPackageItems", false)) { + /** + * The action used to un-archive product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnArchiveProductPackageItems extends ProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnArchiveProductPackageItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ArchiveStatus", false)) { + /** + * Archive status of product package item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageActionErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageActionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageItemActionErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageItemActionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageItemErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageItemError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageRateCardAssociationErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageRateCardAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageRateCardAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateProductPackageItems", false)) { + /** + * Creates new {@link ProductPackageItem} objects. + * + * @param productPackageItems the product package items to create + * @return the created product package items with their IDs filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProductPackageItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItem[] + */ + public $productPackageItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackageItems = null) { + $this->productPackageItems = $productPackageItems; + } + + } +} + +if (!class_exists("CreateProductPackageItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProductPackageItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetProductPackageItemsByStatement", false)) { + /** + * Gets a {@link ProductPackageItemPage} of {@code ProductPackageItem} 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 ProductPackageItem#id}
    {@code productPackageId}{@link ProductPackageItem#productPackageId}
    {@code productId}{@link ProductPackageItem#productId}
    {@code productTemplateId}{@link ProductPackageItem#productTemplateId}
    {@code mandatory}{@link ProductPackageItem#mandatory}
    {@code archived}{@link ProductPackageItem#archived}
    + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product package items that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductPackageItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetProductPackageItemsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductPackageItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformProductPackageItemAction", false)) { + /** + * Performs actions on {@link ProductPackageItem} objects that satisfy the given + * {@link Statement#query}. + * + * @param productPackageItemAction the action to perform + * @param statement a Publisher Query Language statement used to filter + * a set of product package items + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItemAction + */ + public $productPackageItemAction; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackageItemAction = null, $statement = null) { + $this->productPackageItemAction = $productPackageItemAction; + $this->statement = $statement; + } + + } +} + +if (!class_exists("PerformProductPackageItemActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductPackageItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateProductPackageItems", false)) { + /** + * Updates the specified {@link ProductPackageItem} objects. + * + * @param productPackageItems the product package items to update + * @return the updated product package items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductPackageItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItem[] + */ + public $productPackageItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackageItems = null) { + $this->productPackageItems = $productPackageItems; + } + + } +} + +if (!class_exists("UpdateProductPackageItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductPackageItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProductPackageItems", false)) { + /** + * The action used to archive product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProductPackageItems extends ProductPackageItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProductPackageItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ProductPackageItemService", false)) { + /** + * ProductPackageItemService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemService extends DfpSoapClient { + + const SERVICE_NAME = "ProductPackageItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProductPackageItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProductPackageItemService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveProductPackageItems" => "ArchiveProductPackageItems", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductError" => "ProductError", + "ProductPackageActionError" => "ProductPackageActionError", + "ProductPackageItemAction" => "ProductPackageItemAction", + "ProductPackageItemActionError" => "ProductPackageItemActionError", + "ProductPackageItem" => "ProductPackageItem", + "ProductPackageItemError" => "ProductPackageItemError", + "ProductPackageItemPage" => "ProductPackageItemPage", + "ProductPackageRateCardAssociationError" => "ProductPackageRateCardAssociationError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnArchiveProductPackageItems" => "UnArchiveProductPackageItems", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "ArchiveStatus" => "ArchiveStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductError.Reason" => "ProductErrorReason", + "ProductPackageActionError.Reason" => "ProductPackageActionErrorReason", + "ProductPackageItemActionError.Reason" => "ProductPackageItemActionErrorReason", + "ProductPackageItemError.Reason" => "ProductPackageItemErrorReason", + "ProductPackageRateCardAssociationError.Reason" => "ProductPackageRateCardAssociationErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createProductPackageItems" => "CreateProductPackageItems", + "createProductPackageItemsResponse" => "CreateProductPackageItemsResponse", + "getProductPackageItemsByStatement" => "GetProductPackageItemsByStatement", + "getProductPackageItemsByStatementResponse" => "GetProductPackageItemsByStatementResponse", + "performProductPackageItemAction" => "PerformProductPackageItemAction", + "performProductPackageItemActionResponse" => "PerformProductPackageItemActionResponse", + "updateProductPackageItems" => "UpdateProductPackageItems", + "updateProductPackageItemsResponse" => "UpdateProductPackageItemsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link ProductPackageItem} objects. + * + * @param productPackageItems the product package items to create + * @return the created product package items with their IDs filled in + */ + public function createProductPackageItems($productPackageItems) { + $args = new CreateProductPackageItems($productPackageItems); + $result = $this->__soapCall("createProductPackageItems", array($args)); + return $result->rval; + } + /** + * Gets a {@link ProductPackageItemPage} of {@code ProductPackageItem} 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 ProductPackageItem#id}
    {@code productPackageId}{@link ProductPackageItem#productPackageId}
    {@code productId}{@link ProductPackageItem#productId}
    {@code productTemplateId}{@link ProductPackageItem#productTemplateId}
    {@code mandatory}{@link ProductPackageItem#mandatory}
    {@code archived}{@link ProductPackageItem#archived}
    + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product package items that match the given statement + */ + public function getProductPackageItemsByStatement($statement) { + $args = new GetProductPackageItemsByStatement($statement); + $result = $this->__soapCall("getProductPackageItemsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ProductPackageItem} objects that satisfy the given + * {@link Statement#query}. + * + * @param productPackageItemAction the action to perform + * @param statement a Publisher Query Language statement used to filter + * a set of product package items + * @return the result of the action performed + */ + public function performProductPackageItemAction($productPackageItemAction, $statement) { + $args = new PerformProductPackageItemAction($productPackageItemAction, $statement); + $result = $this->__soapCall("performProductPackageItemAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ProductPackageItem} objects. + * + * @param productPackageItems the product package items to update + * @return the updated product package items + */ + public function updateProductPackageItems($productPackageItems) { + $args = new UpdateProductPackageItems($productPackageItems); + $result = $this->__soapCall("updateProductPackageItems", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProductPackageService.php b/src/Google/Api/Ads/Dfp/v201505/ProductPackageService.php new file mode 100755 index 000000000..d1ac0461a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProductPackageService.php @@ -0,0 +1,3546 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BaseRateError", false)) { + /** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError"; + + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackageAction", false)) { + /** + * Represents the actions that can be performed on product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageActionError", false)) { + /** + * Lists all errors for executing operations on product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageActionError"; + + /** + * @access public + * @var tnsProductPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackage", false)) { + /** + * A {@code ProductPackage} represents a group of products which will be sold together. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackage"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsProductPackageStatus + */ + public $status; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var integer[] + */ + public $rateCardIds; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $notes = null, $status = null, $isArchived = null, $rateCardIds = null, $customFieldValues = null, $lastModifiedDateTime = null) { + $this->id = $id; + $this->name = $name; + $this->notes = $notes; + $this->status = $status; + $this->isArchived = $isArchived; + $this->rateCardIds = $rateCardIds; + $this->customFieldValues = $customFieldValues; + $this->lastModifiedDateTime = $lastModifiedDateTime; + } + + } +} + +if (!class_exists("ProductPackageItemError", false)) { + /** + * Lists all errors associated with product package items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemError"; + + /** + * @access public + * @var tnsProductPackageItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPackagePage", false)) { + /** + * Captures a page of {@link ProductPackageDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackagePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackagePage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var ProductPackage[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("ProductPackageRateCardAssociationError", false)) { + /** + * Lists all errors associated with product packages rate card associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageRateCardAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageRateCardAssociationError"; + + /** + * @access public + * @var tnsProductPackageRateCardAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("UnarchiveProductPackages", false)) { + /** + * The action used to un-archive product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveProductPackages extends ProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveProductPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageActionErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageActionError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageItemErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageItemError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageRateCardAssociationErrorReason", false)) { + /** + * The reasons for the {@link ProductPackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageRateCardAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageRateCardAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductPackageStatus", false)) { + /** + * Describes the different statuses for {@code ProductPackage}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductPackageStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreateProductPackages", false)) { + /** + * Creates new {@link ProductPackage} objects. + * + * @param productPackages the product packages to create + * @return the persisted product packages with their ID filled in + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProductPackages { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackage[] + */ + public $productPackages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackages = null) { + $this->productPackages = $productPackages; + } + + } +} + +if (!class_exists("CreateProductPackagesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProductPackagesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackage[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetProductPackagesByStatement", false)) { + /** + * Gets a {@link ProductPackagePage} of {@link ProductPackage} 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 ProductPackage#id}
    {@code name}{@link ProductPackage#name}
    {@code notes}{@link ProductPackage#notes}
    {@code status}{@link ProductPackage#status}
    {@code isArchived}{@link ProductPackage#isArchived}
    {@code lastModifiedDateTime}{@link ProductPackage#lastModifiedDateTime}
    + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product packages that match the given statement + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductPackagesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetProductPackagesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductPackagesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackagePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformProductPackageAction", false)) { + /** + * Performs actions on {@link ProductPackage} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param statement a Publisher Query Language statement used to filter a set of product packages + * @return the result of the action performed + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackageAction + */ + public $action; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($action = null, $statement = null) { + $this->action = $action; + $this->statement = $statement; + } + + } +} + +if (!class_exists("PerformProductPackageActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductPackageActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateProductPackages", false)) { + /** + * Updates the specified {@link ProductPackage} objects. + * + * @param productPackages the product packages to update + * @return the updated product packages + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductPackages { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackage[] + */ + public $productPackages; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productPackages = null) { + $this->productPackages = $productPackages; + } + + } +} + +if (!class_exists("UpdateProductPackagesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductPackagesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPackage[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateProductPackages", false)) { + /** + * The action used to activate product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateProductPackages extends ProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateProductPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProductPackages", false)) { + /** + * The action used to archive product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProductPackages extends ProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProductPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateProductPackages", false)) { + /** + * The action used to de-activate product packages. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateProductPackages extends ProductPackageAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateProductPackages"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ProductPackageService", false)) { + /** + * ProductPackageService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPackageService extends DfpSoapClient { + + const SERVICE_NAME = "ProductPackageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProductPackageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProductPackageService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateProductPackages" => "ActivateProductPackages", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ArchiveProductPackages" => "ArchiveProductPackages", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProductPackages" => "DeactivateProductPackages", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "ProductPackageAction" => "ProductPackageAction", + "ProductPackageActionError" => "ProductPackageActionError", + "ProductPackage" => "ProductPackage", + "ProductPackageItemError" => "ProductPackageItemError", + "ProductPackagePage" => "ProductPackagePage", + "ProductPackageRateCardAssociationError" => "ProductPackageRateCardAssociationError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UnarchiveProductPackages" => "UnarchiveProductPackages", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProductPackageActionError.Reason" => "ProductPackageActionErrorReason", + "ProductPackageItemError.Reason" => "ProductPackageItemErrorReason", + "ProductPackageRateCardAssociationError.Reason" => "ProductPackageRateCardAssociationErrorReason", + "ProductPackageStatus" => "ProductPackageStatus", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "createProductPackages" => "CreateProductPackages", + "createProductPackagesResponse" => "CreateProductPackagesResponse", + "getProductPackagesByStatement" => "GetProductPackagesByStatement", + "getProductPackagesByStatementResponse" => "GetProductPackagesByStatementResponse", + "performProductPackageAction" => "PerformProductPackageAction", + "performProductPackageActionResponse" => "PerformProductPackageActionResponse", + "updateProductPackages" => "UpdateProductPackages", + "updateProductPackagesResponse" => "UpdateProductPackagesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link ProductPackage} objects. + * + * @param productPackages the product packages to create + * @return the persisted product packages with their ID filled in + */ + public function createProductPackages($productPackages) { + $args = new CreateProductPackages($productPackages); + $result = $this->__soapCall("createProductPackages", array($args)); + return $result->rval; + } + /** + * Gets a {@link ProductPackagePage} of {@link ProductPackage} 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 ProductPackage#id}
    {@code name}{@link ProductPackage#name}
    {@code notes}{@link ProductPackage#notes}
    {@code status}{@link ProductPackage#status}
    {@code isArchived}{@link ProductPackage#isArchived}
    {@code lastModifiedDateTime}{@link ProductPackage#lastModifiedDateTime}
    + * + * @param statement a Publisher Query Language statement which specifies the + * filtering criteria over product packages + * @return the product packages that match the given statement + */ + public function getProductPackagesByStatement($statement) { + $args = new GetProductPackagesByStatement($statement); + $result = $this->__soapCall("getProductPackagesByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on {@link ProductPackage} objects that match the given + * {@link Statement#query}. + * + * @param action the action to perform + * @param statement a Publisher Query Language statement used to filter a set of product packages + * @return the result of the action performed + */ + public function performProductPackageAction($action, $statement) { + $args = new PerformProductPackageAction($action, $statement); + $result = $this->__soapCall("performProductPackageAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link ProductPackage} objects. + * + * @param productPackages the product packages to update + * @return the updated product packages + */ + public function updateProductPackages($productPackages) { + $args = new UpdateProductPackages($productPackages); + $result = $this->__soapCall("updateProductPackages", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProductService.php b/src/Google/Api/Ads/Dfp/v201505/ProductService.php new file mode 100755 index 000000000..523aca630 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProductService.php @@ -0,0 +1,6509 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelId = null, $isNegated = null) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BaseRateError", false)) { + /** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError"; + + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $operatingSystems = null) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductAction", false)) { + /** + * Represents the actions that can be performed on products. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductActionError", false)) { + /** + * An error lists all error reasons associated with performing action on {@link Product} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductActionError"; + + /** + * @access public + * @var tnsProductActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Product", false)) { + /** + * {@link ProposalLineItem Proposal line items} are created from products, + * from which their properties are copied. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Product { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 integer + */ + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError"; + + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductPage", false)) { + /** + * Captures a page of {@link ProductDto} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ProductTemplateTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var boolean + */ + public $allowAudienceSegmentTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $isAllCustomTargetingKeysCustomizable; + + /** + * @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; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCapabilityTargetingCustomization; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCategoryTargetingCustomization; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileCarrierTargetingCustomization; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileDeviceAndManufacturerTargetingCustomization; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; + $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; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSizeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductStatus", false)) { + /** + * Describes the different statuses for {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductType", false)) { + /** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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}YesYes
    {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
    + * + * @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 v201505 + */ + class GetProductsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetProductsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productAction = null, $filterStatement = null) { + $this->productAction = $productAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformProductActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateProducts { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Product[] + */ + public $products; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($products = null) { + $this->products = $products; + } + + } +} + +if (!class_exists("UpdateProductsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Product[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateProducts", false)) { + /** + * The action used to activate products. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateProducts"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProducts", false)) { + /** + * This action is deprecated and is a no-op, use {@link ArchiveProductTemplates} instead. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProducts"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateProducts", false)) { + /** + * The action used to deactivate products. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateProducts extends ProductAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateProducts"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("ProductService", false)) { + /** + * ProductService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductService extends DfpSoapClient { + + const SERVICE_NAME = "ProductService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProductService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProductService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateProducts" => "ActivateProducts", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveProducts" => "ArchiveProducts", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProducts" => "DeactivateProducts", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "Location" => "DfpLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "ProductAction" => "ProductAction", + "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", + "Technology" => "Technology", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "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", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "getProductsByStatement" => "GetProductsByStatement", + "getProductsByStatementResponse" => "GetProductsByStatementResponse", + "performProductAction" => "PerformProductAction", + "performProductActionResponse" => "PerformProductActionResponse", + "updateProducts" => "UpdateProducts", + "updateProductsResponse" => "UpdateProductsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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}YesYes
    {@code lastModifiedDateTime}{@link Product#lastModifiedDateTime}YesYes
    + * + * @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) { + $args = new GetProductsByStatement($statement); + $result = $this->__soapCall("getProductsByStatement", array($args)); + 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) { + $args = new PerformProductAction($productAction, $filterStatement); + $result = $this->__soapCall("performProductAction", array($args)); + 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) { + $args = new UpdateProducts($products); + $result = $this->__soapCall("updateProducts", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProductTemplateService.php b/src/Google/Api/Ads/Dfp/v201505/ProductTemplateService.php new file mode 100755 index 000000000..32d5aada0 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProductTemplateService.php @@ -0,0 +1,7438 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelId = null, $isNegated = null) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BaseRateError", false)) { + /** + * An error having to do with {@link BaseRate}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError"; + + /** + * @access public + * @var tnsBaseRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $operatingSystems = null) { + $this->isTargeted = $isTargeted; + $this->operatingSystems = $operatingSystems; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PlacementTargeting", false)) { + /** + * Specifies what {@link Placement placements} are targeted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementTargeting"; + + /** + * @access public + * @var integer[] + */ + public $targetedPlacementIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedPlacementIds = null) { + $this->targetedPlacementIds = $targetedPlacementIds; + } + + } +} + +if (!class_exists("ProductTemplateAction", false)) { + /** + * Represents the actions that can be performed on product templates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductTemplateActionError", false)) { + /** + * An error lists all error reasons associated with performing action on + * {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateActionError"; + + /** + * @access public + * @var tnsProductTemplateActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ProductTemplate { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * @access public + * @var tnsEnvironmentType + */ + public $environmentType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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, $environmentType = 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; + $this->environmentType = $environmentType; + } + + } +} + +if (!class_exists("ProductTemplateError", false)) { + /** + * A catch-all error that lists all generic errors associated with ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateError"; + + /** + * @access public + * @var tnsProductTemplateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductTemplatePage", false)) { + /** + * Captures a page of {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplatePage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ProductSegmentation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductSegmentation"; + + /** + * @access public + * @var GeoTargeting + */ + public $geoSegment; + + /** + * @access public + * @var AdUnitTargeting[] + */ + public $adUnitSegments; + + /** + * @access public + * @var PlacementTargeting + */ + public $placementSegment; + + /** + * @access public + * @var CustomCriteria[] + */ + public $customTargetingSegment; + + /** + * @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; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierSegment; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilitySegment; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategorySegment; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerSegment; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceSegment; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelSegment; + + /** + * @access public + * @var VideoPositionTargeting + */ + public $videoPositionSegment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($geoSegment = null, $adUnitSegments = null, $placementSegment = null, $customTargetingSegment = null, $userDomainSegment = null, $bandwidthSegment = null, $browserSegment = null, $browserLanguageSegment = null, $operatingSystemSegment = null, $mobileCarrierSegment = null, $deviceCapabilitySegment = null, $deviceCategorySegment = null, $deviceManufacturerSegment = null, $mobileDeviceSegment = null, $mobileDeviceSubmodelSegment = null, $videoPositionSegment = null) { + $this->geoSegment = $geoSegment; + $this->adUnitSegments = $adUnitSegments; + $this->placementSegment = $placementSegment; + $this->customTargetingSegment = $customTargetingSegment; + $this->userDomainSegment = $userDomainSegment; + $this->bandwidthSegment = $bandwidthSegment; + $this->browserSegment = $browserSegment; + $this->browserLanguageSegment = $browserLanguageSegment; + $this->operatingSystemSegment = $operatingSystemSegment; + $this->mobileCarrierSegment = $mobileCarrierSegment; + $this->deviceCapabilitySegment = $deviceCapabilitySegment; + $this->deviceCategorySegment = $deviceCategorySegment; + $this->deviceManufacturerSegment = $deviceManufacturerSegment; + $this->mobileDeviceSegment = $mobileDeviceSegment; + $this->mobileDeviceSubmodelSegment = $mobileDeviceSubmodelSegment; + $this->videoPositionSegment = $videoPositionSegment; + } + + } +} + +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 v201505 + */ + class ProductTemplateTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var boolean + */ + public $allowAudienceSegmentTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $isAllCustomTargetingKeysCustomizable; + + /** + * @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; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCapabilityTargetingCustomization; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCategoryTargetingCustomization; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileCarrierTargetingCustomization; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileDeviceAndManufacturerTargetingCustomization; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; + $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; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveProductTemplates", false)) { + /** + * The action used for unarchiving {@link ProductTemplate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveProductTemplates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BaseRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSizeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductTemplateActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductTemplateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductTemplateStatus", false)) { + /** + * Describes the different statuses for ProductTemplate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductTemplateStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductType", false)) { + /** + * Describes the type of {@link Product}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateProductTemplates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productTemplates = null) { + $this->productTemplates = $productTemplates; + } + + } +} + +if (!class_exists("CreateProductTemplatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetProductTemplatesByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $statement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($statement = null) { + $this->statement = $statement; + } + + } +} + +if (!class_exists("GetProductTemplatesByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProductTemplatesByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductTemplatePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($action = null, $filterStatement = null) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformProductTemplateActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProductTemplateActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateProductTemplates", false)) { + /** + * Updates the specified {@link ProductTemplate} objects. + * + * @param productTemplates the product templates to update + * @return the updated product templates + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductTemplates { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductTemplate[] + */ + public $productTemplates; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($productTemplates = null) { + $this->productTemplates = $productTemplates; + } + + } +} + +if (!class_exists("UpdateProductTemplatesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProductTemplatesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductTemplate[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateProductTemplates", false)) { + /** + * The action used for activating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateProductTemplates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProductTemplates", false)) { + /** + * The action used for archiving product template. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProductTemplates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateProductTemplates", false)) { + /** + * The action used for deactivating product templates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateProductTemplates extends ProductTemplateAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateProductTemplates"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("ProductTemplateService", false)) { + /** + * ProductTemplateService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductTemplateService extends DfpSoapClient { + + const SERVICE_NAME = "ProductTemplateService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProductTemplateService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProductTemplateService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateProductTemplates" => "ActivateProductTemplates", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveProductTemplates" => "ArchiveProductTemplates", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BaseRateError" => "BaseRateError", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateProductTemplates" => "DeactivateProductTemplates", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "Location" => "DfpLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "PermissionError" => "PermissionError", + "PlacementTargeting" => "PlacementTargeting", + "ProductTemplateAction" => "ProductTemplateAction", + "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", + "Technology" => "Technology", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UnarchiveProductTemplates" => "UnarchiveProductTemplates", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BaseRateError.Reason" => "BaseRateErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeSizeType" => "CreativeSizeType", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "CustomTargetingError.Reason" => "CustomTargetingErrorReason", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "EnvironmentType" => "EnvironmentType", + "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", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createProductTemplates" => "CreateProductTemplates", + "createProductTemplatesResponse" => "CreateProductTemplatesResponse", + "getProductTemplatesByStatement" => "GetProductTemplatesByStatement", + "getProductTemplatesByStatementResponse" => "GetProductTemplatesByStatementResponse", + "performProductTemplateAction" => "PerformProductTemplateAction", + "performProductTemplateActionResponse" => "PerformProductTemplateActionResponse", + "updateProductTemplates" => "UpdateProductTemplates", + "updateProductTemplatesResponse" => "UpdateProductTemplatesResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateProductTemplates($productTemplates); + $result = $this->__soapCall("createProductTemplates", array($args)); + 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) { + $args = new GetProductTemplatesByStatement($statement); + $result = $this->__soapCall("getProductTemplatesByStatement", array($args)); + 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) { + $args = new PerformProductTemplateAction($action, $filterStatement); + $result = $this->__soapCall("performProductTemplateAction", array($args)); + 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) { + $args = new UpdateProductTemplates($productTemplates); + $result = $this->__soapCall("updateProductTemplates", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProposalLineItemService.php b/src/Google/Api/Ads/Dfp/v201505/ProposalLineItemService.php new file mode 100755 index 000000000..606c7cc31 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProposalLineItemService.php @@ -0,0 +1,10110 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelId = null, $isNegated = null) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AvailableBillingError", false)) { + /** + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError"; + + /** + * @access public + * @var tnsAvailableBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BillingError", false)) { + /** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError"; + + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BrowserLanguageTargeting", false)) { + /** + * Represents browser languages that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CreativePlaceholder { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CustomTargetingError", false)) { + /** + * Lists all errors related to {@link CustomTargetingKey} and + * {@link CustomTargetingValue} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError"; + + /** + * @access public + * @var tnsCustomTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError"; + + /** + * @access public + * @var tnsDayPartTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DeliveryData { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryData"; + + /** + * @access public + * @var integer[] + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($units = null) { + $this->units = $units; + } + + } +} + +if (!class_exists("DeliveryIndicator", false)) { + /** + * Indicates the delivery performance of the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryIndicator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FrequencyCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FrequencyCapError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError"; + + /** + * @access public + * @var tnsFrequencyCapErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("GenericTargetingError", false)) { + /** + * Targeting validation errors that can be used by different targeting types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError"; + + /** + * @access public + * @var tnsGenericTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class GeoTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError"; + + /** + * @access public + * @var tnsGeoTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Goal", false)) { + /** + * Defines the criteria a {@link LineItem} needs to satisfy to meet its delivery goal. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Goal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Goal"; + + /** + * @access public + * @var tnsGoalType + */ + public $goalType; + + /** + * @access public + * @var tnsUnitType + */ + public $unitType; + + /** + * @access public + * @var integer + */ + public $units; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($goalType = null, $unitType = null, $units = null) { + $this->goalType = $goalType; + $this->unitType = $unitType; + $this->units = $units; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedMobileDevices = null, $excludedMobileDevices = null) { + $this->targetedMobileDevices = $targetedMobileDevices; + $this->excludedMobileDevices = $excludedMobileDevices; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PrecisionError", false)) { + /** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError"; + + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PremiumFeature", false)) { + /** + * A {@code PremiumFeature} represents the feature type to be applied as a premium on a + * {@link RateCard}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PremiumRateValue", false)) { + /** + * A premium of a {@link RateCard} which could be applied to the line item + * and charges extra. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumRateValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumRateValue"; + + /** + * @access public + * @var integer + */ + public $premiumRateId; + + /** + * @access public + * @var PremiumFeature + */ + public $premiumFeature; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var tnsPremiumAdjustmentType + */ + public $adjustmentType; + + /** + * @access public + * @var integer + */ + public $adjustmentSize; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRateId = null, $premiumFeature = null, $rateType = null, $adjustmentType = null, $adjustmentSize = null) { + $this->premiumRateId = $premiumRateId; + $this->premiumFeature = $premiumFeature; + $this->rateType = $rateType; + $this->adjustmentType = $adjustmentType; + $this->adjustmentSize = $adjustmentSize; + } + + } +} + +if (!class_exists("ProductError", false)) { + /** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError"; + + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ProductTemplateTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 CustomCriteriaSet + */ + public $customTargeting; + + /** + * @access public + * @var integer[] + */ + public $customizableCustomTargetingKeyIds; + + /** + * @access public + * @var boolean + */ + public $allowAudienceSegmentTargetingCustomization; + + /** + * @access public + * @var boolean + */ + public $isAllCustomTargetingKeysCustomizable; + + /** + * @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; + + /** + * @access public + * @var DeviceCapabilityTargeting + */ + public $deviceCapabilityTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCapabilityTargetingCustomization; + + /** + * @access public + * @var DeviceCategoryTargeting + */ + public $deviceCategoryTargeting; + + /** + * @access public + * @var boolean + */ + public $allowDeviceCategoryTargetingCustomization; + + /** + * @access public + * @var MobileCarrierTargeting + */ + public $mobileCarrierTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileCarrierTargetingCustomization; + + /** + * @access public + * @var DeviceManufacturerTargeting + */ + public $deviceManufacturerTargeting; + + /** + * @access public + * @var MobileDeviceTargeting + */ + public $mobileDeviceTargeting; + + /** + * @access public + * @var MobileDeviceSubmodelTargeting + */ + public $mobileDeviceSubmodelTargeting; + + /** + * @access public + * @var boolean + */ + public $allowMobileDeviceAndManufacturerTargetingCustomization; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($geoTargeting = null, $allowGeoTargetingCustomization = null, $inventoryTargeting = null, $allowAdUnitTargetingCustomization = null, $allowPlacementTargetingCustomization = null, $customTargeting = null, $customizableCustomTargetingKeyIds = null, $allowAudienceSegmentTargetingCustomization = null, $isAllCustomTargetingKeysCustomizable = null, $userDomainTargeting = null, $allowUserDomainTargetingCustomization = null, $bandwidthGroupTargeting = null, $allowBandwidthGroupTargetingCustomization = null, $browserTargeting = null, $allowBrowserTargetingCustomization = null, $browserLanguageTargeting = null, $allowBrowserLanguageTargetingCustomization = null, $operatingSystemTargeting = null, $allowOperatingSystemTargetingCustomization = null, $deviceCapabilityTargeting = null, $allowDeviceCapabilityTargetingCustomization = null, $deviceCategoryTargeting = null, $allowDeviceCategoryTargetingCustomization = null, $mobileCarrierTargeting = null, $allowMobileCarrierTargetingCustomization = null, $deviceManufacturerTargeting = null, $mobileDeviceTargeting = null, $mobileDeviceSubmodelTargeting = null, $allowMobileDeviceAndManufacturerTargetingCustomization = null, $contentTargeting = null, $videoPositionTargeting = null) { + $this->geoTargeting = $geoTargeting; + $this->allowGeoTargetingCustomization = $allowGeoTargetingCustomization; + $this->inventoryTargeting = $inventoryTargeting; + $this->allowAdUnitTargetingCustomization = $allowAdUnitTargetingCustomization; + $this->allowPlacementTargetingCustomization = $allowPlacementTargetingCustomization; + $this->customTargeting = $customTargeting; + $this->customizableCustomTargetingKeyIds = $customizableCustomTargetingKeyIds; + $this->allowAudienceSegmentTargetingCustomization = $allowAudienceSegmentTargetingCustomization; + $this->isAllCustomTargetingKeysCustomizable = $isAllCustomTargetingKeysCustomizable; + $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; + $this->deviceCapabilityTargeting = $deviceCapabilityTargeting; + $this->allowDeviceCapabilityTargetingCustomization = $allowDeviceCapabilityTargetingCustomization; + $this->deviceCategoryTargeting = $deviceCategoryTargeting; + $this->allowDeviceCategoryTargetingCustomization = $allowDeviceCategoryTargetingCustomization; + $this->mobileCarrierTargeting = $mobileCarrierTargeting; + $this->allowMobileCarrierTargetingCustomization = $allowMobileCarrierTargetingCustomization; + $this->deviceManufacturerTargeting = $deviceManufacturerTargeting; + $this->mobileDeviceTargeting = $mobileDeviceTargeting; + $this->mobileDeviceSubmodelTargeting = $mobileDeviceSubmodelTargeting; + $this->allowMobileDeviceAndManufacturerTargetingCustomization = $allowMobileDeviceAndManufacturerTargetingCustomization; + $this->contentTargeting = $contentTargeting; + $this->videoPositionTargeting = $videoPositionTargeting; + } + + } +} + +if (!class_exists("ProposalError", false)) { + /** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError"; + + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemAction", false)) { + /** + * Represents the actions that can be performed on {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemActionError", false)) { + /** + * Lists all errors for executing operations on proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemActionError"; + + /** + * @access public + * @var tnsProposalLineItemActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemConstraints", false)) { + /** + * A {@code PropoalLineItemConstraints} represents all the constraints set for a + * {@link ProposalLineItem} and is always readonly. It comes from the {@link Product}, + * based on which the proposal line item is created. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemConstraints { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemConstraints"; + + /** + * @access public + * @var boolean + */ + public $allowFrequencyCapsCustomization; + + /** + * @access public + * @var FrequencyCap[] + */ + public $builtInFrequencyCaps; + + /** + * @access public + * @var ProductTemplateTargeting + */ + public $builtInTargeting; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($allowFrequencyCapsCustomization = null, $builtInFrequencyCaps = null, $builtInTargeting = null) { + $this->allowFrequencyCapsCustomization = $allowFrequencyCapsCustomization; + $this->builtInFrequencyCaps = $builtInFrequencyCaps; + $this->builtInTargeting = $builtInTargeting; + } + + } +} + +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 v201505 + */ + class ProposalLineItem { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItem"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var integer + */ + public $rateCardId; + + /** + * @access public + * @var integer + */ + 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 $timeZoneId; + + /** + * @access public + * @var string + */ + public $notes; + + /** + * @access public + * @var tnsCostAdjustment + */ + public $costAdjustment; + + /** + * @access public + * @var boolean + */ + public $isArchived; + + /** + * @access public + * @var Goal + */ + public $goal; + + /** + * @access public + * @var integer + */ + public $contractedQuantityBuffer; + + /** + * @access public + * @var integer + */ + public $scheduledQuantity; + + /** + * @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 CustomCriteriaSet + */ + public $derivedProductCustomCriteria; + + /** + * @access public + * @var BaseCustomFieldValue[] + */ + public $customFieldValues; + + /** + * @access public + * @var AppliedLabel[] + */ + public $appliedLabels; + + /** + * @access public + * @var AppliedLabel[] + */ + public $effectiveAppliedLabels; + + /** + * @access public + * @var boolean + */ + public $disableSameAdvertiserCompetitiveExclusion; + + /** + * @access public + * @var ProposalLineItemConstraints + */ + public $productConstraints; + + /** + * @access public + * @var ProposalLineItemPremium[] + */ + public $premiums; + + /** + * @access public + * @var boolean + */ + public $isSold; + + /** + * @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 tnsBillingBase + */ + public $billingBase; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var tnsReservationStatus + */ + public $reservationStatus; + + /** + * @access public + * @var boolean + */ + public $useThirdPartyAdServerFromProposal; + + /** + * @access public + * @var integer + */ + public $thirdPartyAdServerId; + + /** + * @access public + * @var string + */ + public $customThirdPartyAdServerName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $proposalId = null, $rateCardId = null, $productId = null, $name = null, $startDateTime = null, $endDateTime = null, $timeZoneId = null, $notes = null, $costAdjustment = null, $isArchived = null, $goal = null, $contractedQuantityBuffer = null, $scheduledQuantity = null, $deliveryRateType = null, $roadblockingType = null, $companionDeliveryOption = null, $creativeRotationType = null, $frequencyCaps = null, $dfpLineItemId = null, $lineItemType = null, $lineItemPriority = null, $rateType = null, $creativePlaceholders = null, $targeting = null, $derivedProductCustomCriteria = null, $customFieldValues = null, $appliedLabels = null, $effectiveAppliedLabels = null, $disableSameAdvertiserCompetitiveExclusion = null, $productConstraints = null, $premiums = null, $isSold = null, $baseRate = null, $costPerUnit = null, $cost = null, $deliveryIndicator = null, $deliveryData = null, $computedStatus = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $billingBase = null, $lastModifiedDateTime = null, $reservationStatus = null, $useThirdPartyAdServerFromProposal = null, $thirdPartyAdServerId = null, $customThirdPartyAdServerName = null) { + $this->id = $id; + $this->proposalId = $proposalId; + $this->rateCardId = $rateCardId; + $this->productId = $productId; + $this->name = $name; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->timeZoneId = $timeZoneId; + $this->notes = $notes; + $this->costAdjustment = $costAdjustment; + $this->isArchived = $isArchived; + $this->goal = $goal; + $this->contractedQuantityBuffer = $contractedQuantityBuffer; + $this->scheduledQuantity = $scheduledQuantity; + $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->derivedProductCustomCriteria = $derivedProductCustomCriteria; + $this->customFieldValues = $customFieldValues; + $this->appliedLabels = $appliedLabels; + $this->effectiveAppliedLabels = $effectiveAppliedLabels; + $this->disableSameAdvertiserCompetitiveExclusion = $disableSameAdvertiserCompetitiveExclusion; + $this->productConstraints = $productConstraints; + $this->premiums = $premiums; + $this->isSold = $isSold; + $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->billingBase = $billingBase; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->reservationStatus = $reservationStatus; + $this->useThirdPartyAdServerFromProposal = $useThirdPartyAdServerFromProposal; + $this->thirdPartyAdServerId = $thirdPartyAdServerId; + $this->customThirdPartyAdServerName = $customThirdPartyAdServerName; + } + + } +} + +if (!class_exists("ProposalLineItemError", false)) { + /** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError"; + + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemPage", false)) { + /** + * Captures a page of {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($results = null, $startIndex = null, $totalResultSetSize = null) { + $this->results = $results; + $this->startIndex = $startIndex; + $this->totalResultSetSize = $totalResultSetSize; + } + + } +} + +if (!class_exists("ProposalLineItemPremium", false)) { + /** + * Represents the status of a triggered {@link PremiumRateValue} (formerly + * referred to as a {@code RateCardCustomization}). + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemPremium { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemPremium"; + + /** + * @access public + * @var PremiumRateValue + */ + public $premiumRateValue; + + /** + * @access public + * @var tnsProposalLineItemPremiumStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($premiumRateValue = null, $status = null) { + $this->premiumRateValue = $premiumRateValue; + $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 v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReleaseProposalLineItems", false)) { + /** + * The action used for releasing inventory for {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReleaseProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReleaseProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ResumeProposalLineItems", false)) { + /** + * The action used for resuming {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ResumeProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ResumeProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Technology", false)) { + /** + * Represents a technology entity that can be targeted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TechnologyTargetingError", false)) { + /** + * Technology targeting validation errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError"; + + /** + * @access public + * @var tnsTechnologyTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeOfDay", false)) { + /** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($hour = null, $minute = null) { + $this->hour = $hour; + $this->minute = $minute; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveProposalLineItems", false)) { + /** + * The action used for unarchiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnknownPremiumFeature", false)) { + /** + * The {@link PremiumFeature} returned if the actual feature is not exposed by + * the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnknownPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnknownPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserDomainPremiumFeature", false)) { + /** + * A premium feature applied to user domain targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserDomainTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError"; + + /** + * @access public + * @var tnsUserDomainTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingBase", false)) { + /** + * Determines the base of billing calculation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingBase { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingBase"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingCap"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingSchedule"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingSource", false)) { + /** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingSource"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CompanionDeliveryOption", false)) { + /** + * The delivery option for companions. Used for line items whose environmentType is + * {@link EnvironmentType#VIDEO_PLAYER}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CompanionDeliveryOption { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CompanionDeliveryOption"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ComputedStatus", false)) { + /** + * Describes the computed {@link LineItem} status that is derived from the + * current state of the line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ComputedStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ComputedStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CostAdjustment", false)) { + /** + * Describes the cost adjustment of {@link ProposalLineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CostAdjustment { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CostAdjustment"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeRotationType", false)) { + /** + * The strategy to use for displaying multiple {@link Creative} objects that are + * associated with a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeRotationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeRotationType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreativeSizeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeSizeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayOfWeek"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayPartTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayPartTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayPartTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryTimeZone", false)) { + /** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryTimeZone"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryRateType", false)) { + /** + * Possible delivery rates for a {@link LineItem}, which dictate the manner in + * which they are served. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryRateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryRateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FrequencyCapErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GenericTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GenericTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GenericTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GeoTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeoTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeoTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GoalType", false)) { + /** + * Specifies the type of the goal for a {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GoalType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GoalType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class LineItemType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MinuteOfHour", false)) { + /** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MinuteOfHour"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PrecisionErrorReason", false)) { + /** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PremiumAdjustmentType", false)) { + /** + * Describes how to apply the adjustment to the base rate. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PremiumAdjustmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PremiumAdjustmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemPremiumStatus", false)) { + /** + * Status of the premium triggered by a proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemPremiumStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemPremiumStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationStatus", false)) { + /** + * Represents the inventory reservation status for {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RoadblockingType", false)) { + /** + * Describes the roadblocking types. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RoadblockingType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RoadblockingType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TechnologyTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TechnologyTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeUnit", false)) { + /** + * Represent the possible time units for frequency capping. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class UnitType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnitType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserDomainTargetingErrorReason", false)) { + /** + * {@link ApiErrorReason} enum for user domain targeting error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserDomainTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserDomainTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposalLineItems = null) { + $this->proposalLineItems = $proposalLineItems; + } + + } +} + +if (!class_exists("CreateProposalLineItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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}
    {@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
    {@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
    + * + * @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 v201505 + */ + class GetProposalLineItemsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetProposalLineItemsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProposalLineItemsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItemPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposalLineItemAction = null, $filterStatement = null) { + $this->proposalLineItemAction = $proposalLineItemAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformProposalLineItemActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProposalLineItemActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateProposalLineItems { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $proposalLineItems; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposalLineItems = null) { + $this->proposalLineItems = $proposalLineItems; + } + + } +} + +if (!class_exists("UpdateProposalLineItemsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProposalLineItemsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalLineItem[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActualizeProposalLineItems", false)) { + /** + * The action used for actualizing {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActualizeProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActualizeProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdUnitPremiumFeature", false)) { + /** + * A premium feature applied to ad unit targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProposalLineItems", false)) { + /** + * The action used for archiving {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentPremiumFeature", false)) { + /** + * A premium feature applied to audience segment targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentPremiumFeature"; + + /** + * @access public + * @var integer + */ + public $audienceSegmentId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($audienceSegmentId = null) { + parent::__construct(); + $this->audienceSegmentId = $audienceSegmentId; + } + + } +} + +if (!class_exists("BandwidthPremiumFeature", false)) { + /** + * A premium feature applied to bandwidth targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserPremiumFeature", false)) { + /** + * A premium feature applied to browser targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguagePremiumFeature", false)) { + /** + * A premium feature applied to browser language targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguagePremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguagePremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomTargetingPremiumFeature", false)) { + /** + * A premium feature applied to custom criteria targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomTargetingPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomTargetingPremiumFeature"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customTargetingKeyId = null, $customTargetingValueId = null) { + parent::__construct(); + $this->customTargetingKeyId = $customTargetingKeyId; + $this->customTargetingValueId = $customTargetingValueId; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DaypartPremiumFeature", false)) { + /** + * A premium feature applied to daypart targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DaypartPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DaypartPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCapabilityPremiumFeature", false)) { + /** + * A premium feature applied to device capability targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapabilityPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategoryPremiumFeature", false)) { + /** + * A premium feature applied to device category targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategoryPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategoryPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturerPremiumFeature", false)) { + /** + * A premium feature applied to device manufacturer targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturerPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturerPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("FrequencyCapPremiumFeature", false)) { + /** + * A premium feature applied to frequency caps. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FrequencyCapPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FrequencyCapPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("GeographyPremiumFeature", false)) { + /** + * A premium feature applied to geography targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GeographyPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "GeographyPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileCarrierPremiumFeature", false)) { + /** + * A premium feature applied to mobile carrier targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrierPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemPremiumFeature", false)) { + /** + * A premium feature applied to operating system targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("PauseProposalLineItems", false)) { + /** + * The action used for pausing {@link ProposalLineItem} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PauseProposalLineItems extends ProposalLineItemAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PauseProposalLineItems"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("PlacementPremiumFeature", false)) { + /** + * A premium feature applied to placement targeting. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PlacementPremiumFeature extends PremiumFeature { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PlacementPremiumFeature"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("ProposalLineItemService", false)) { + /** + * ProposalLineItemService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalLineItemService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProposalLineItemService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProposalLineItemService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActualizeProposalLineItems" => "ActualizeProposalLineItems", + "AdUnitPremiumFeature" => "AdUnitPremiumFeature", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposalLineItems" => "ArchiveProposalLineItems", + "AudienceSegmentPremiumFeature" => "AudienceSegmentPremiumFeature", + "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BandwidthPremiumFeature" => "BandwidthPremiumFeature", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserPremiumFeature" => "BrowserPremiumFeature", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguagePremiumFeature" => "BrowserLanguagePremiumFeature", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", + "CreativePlaceholder" => "CreativePlaceholder", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "CustomTargetingError" => "CustomTargetingError", + "CustomTargetingPremiumFeature" => "CustomTargetingPremiumFeature", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DaypartPremiumFeature" => "DaypartPremiumFeature", + "DayPartTargeting" => "DayPartTargeting", + "DayPartTargetingError" => "DayPartTargetingError", + "DeliveryData" => "DeliveryData", + "DeliveryIndicator" => "DeliveryIndicator", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityPremiumFeature" => "DeviceCapabilityPremiumFeature", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryPremiumFeature" => "DeviceCategoryPremiumFeature", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerPremiumFeature" => "DeviceManufacturerPremiumFeature", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "FrequencyCap" => "FrequencyCap", + "FrequencyCapError" => "FrequencyCapError", + "FrequencyCapPremiumFeature" => "FrequencyCapPremiumFeature", + "GenericTargetingError" => "GenericTargetingError", + "GeoTargeting" => "GeoTargeting", + "GeoTargetingError" => "GeoTargetingError", + "GeographyPremiumFeature" => "GeographyPremiumFeature", + "Goal" => "Goal", + "InternalApiError" => "InternalApiError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemOperationError" => "LineItemOperationError", + "Location" => "DfpLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierPremiumFeature" => "MobileCarrierPremiumFeature", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemPremiumFeature" => "OperatingSystemPremiumFeature", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "PauseProposalLineItems" => "PauseProposalLineItems", + "PermissionError" => "PermissionError", + "PlacementPremiumFeature" => "PlacementPremiumFeature", + "PrecisionError" => "PrecisionError", + "PremiumFeature" => "PremiumFeature", + "PremiumRateValue" => "PremiumRateValue", + "ProductError" => "ProductError", + "ProductTemplateTargeting" => "ProductTemplateTargeting", + "ProposalError" => "ProposalError", + "ProposalLineItemAction" => "ProposalLineItemAction", + "ProposalLineItemActionError" => "ProposalLineItemActionError", + "ProposalLineItemConstraints" => "ProposalLineItemConstraints", + "ProposalLineItem" => "ProposalLineItem", + "ProposalLineItemError" => "ProposalLineItemError", + "ProposalLineItemPage" => "ProposalLineItemPage", + "ProposalLineItemPremium" => "ProposalLineItemPremium", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RangeError" => "RangeError", + "ReleaseProposalLineItems" => "ReleaseProposalLineItems", + "RequiredError" => "RequiredError", + "RequiredNumberError" => "RequiredNumberError", + "ReservationDetailsError" => "ReservationDetailsError", + "ResumeProposalLineItems" => "ResumeProposalLineItems", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "StringLengthError" => "StringLengthError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "Targeting" => "Targeting", + "TeamError" => "TeamError", + "Technology" => "Technology", + "TechnologyTargetingError" => "TechnologyTargetingError", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TimeZoneError" => "TimeZoneError", + "UnarchiveProposalLineItems" => "UnarchiveProposalLineItems", + "UniqueError" => "UniqueError", + "UnknownPremiumFeature" => "UnknownPremiumFeature", + "UpdateResult" => "UpdateResult", + "UserDomainPremiumFeature" => "UserDomainPremiumFeature", + "UserDomainTargeting" => "UserDomainTargeting", + "UserDomainTargetingError" => "UserDomainTargetingError", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingBase" => "BillingBase", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "FrequencyCapError.Reason" => "FrequencyCapErrorReason", + "GenericTargetingError.Reason" => "GenericTargetingErrorReason", + "GeoTargetingError.Reason" => "GeoTargetingErrorReason", + "GoalType" => "GoalType", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryTargetingError.Reason" => "InventoryTargetingErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "LineItemType" => "LineItemType", + "MinuteOfHour" => "MinuteOfHour", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PrecisionError.Reason" => "PrecisionErrorReason", + "PremiumAdjustmentType" => "PremiumAdjustmentType", + "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", + "ReservationStatus" => "ReservationStatus", + "RoadblockingType" => "RoadblockingType", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "TechnologyTargetingError.Reason" => "TechnologyTargetingErrorReason", + "TimeUnit" => "TimeUnit", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "UnitType" => "UnitType", + "UserDomainTargetingError.Reason" => "UserDomainTargetingErrorReason", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "createProposalLineItems" => "CreateProposalLineItems", + "createProposalLineItemsResponse" => "CreateProposalLineItemsResponse", + "getProposalLineItemsByStatement" => "GetProposalLineItemsByStatement", + "getProposalLineItemsByStatementResponse" => "GetProposalLineItemsByStatementResponse", + "performProposalLineItemAction" => "PerformProposalLineItemAction", + "performProposalLineItemActionResponse" => "PerformProposalLineItemActionResponse", + "updateProposalLineItems" => "UpdateProposalLineItems", + "updateProposalLineItemsResponse" => "UpdateProposalLineItemsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateProposalLineItems($proposalLineItems); + $result = $this->__soapCall("createProposalLineItems", array($args)); + 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}
    {@code useThirdPartyAdServerFromProposal}{@link ProposalLineItem#useThirdPartyAdServerFromProposal}
    {@code thirdPartyAdServerId}{@link ProposalLineItem#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link ProposalLineItem#customThirdPartyAdServerName}
    + * + * @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) { + $args = new GetProposalLineItemsByStatement($filterStatement); + $result = $this->__soapCall("getProposalLineItemsByStatement", array($args)); + 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) { + $args = new PerformProposalLineItemAction($proposalLineItemAction, $filterStatement); + $result = $this->__soapCall("performProposalLineItemAction", array($args)); + 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) { + $args = new UpdateProposalLineItems($proposalLineItems); + $result = $this->__soapCall("updateProposalLineItems", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ProposalService.php b/src/Google/Api/Ads/Dfp/v201505/ProposalService.php new file mode 100755 index 000000000..b57f78f55 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ProposalService.php @@ -0,0 +1,5926 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +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 v201505 + */ + class AppliedLabel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelId = null, $isNegated = null) { + $this->labelId = $labelId; + $this->isNegated = $isNegated; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AvailableBillingError", false)) { + /** + * Lists all errors associated with the availability of billing settings based on + * proposal network settings. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError"; + + /** + * @access public + * @var tnsAvailableBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("BillingError", false)) { + /** + * Lists all errors associated with the billing settings of a proposal or proposal line item. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError"; + + /** + * @access public + * @var tnsBillingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PackageActionError", false)) { + /** + * Lists all errors for executing actions on {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageActionError"; + + /** + * @access public + * @var tnsPackageActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PackageError", false)) { + /** + * Lists all errors associated with {@link Package} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageError"; + + /** + * @access public + * @var tnsPackageErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PrecisionError", false)) { + /** + * List all errors associated with number precisions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError"; + + /** + * @access public + * @var tnsPrecisionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProductError", false)) { + /** + * A catch-all error that lists all generic errors associated with Product. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError"; + + /** + * @access public + * @var tnsProductErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalAction", false)) { + /** + * Represents the actions that can be performed on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalActionError", false)) { + /** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalActionError"; + + /** + * @access public + * @var tnsProposalActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLink", false)) { + /** + * A link that can be added as a resource to a {@link Proposal}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLink { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLink"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var integer + */ + public $creatorId; + + /** + * @access public + * @var string + */ + public $url; + + /** + * @access public + * @var string + */ + public $description; + + /** + * @access public + * @var DateTime + */ + public $creationDateTime; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $creatorId = null, $url = null, $description = null, $creationDateTime = null) { + $this->id = $id; + $this->name = $name; + $this->creatorId = $creatorId; + $this->url = $url; + $this->description = $description; + $this->creationDateTime = $creationDateTime; + } + + } +} + +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 v201505 + */ + class ProposalCompanyAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Proposal { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 string + */ + public $timeZoneId; + + /** + * @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 $probabilityOfClose; + + /** + * @access public + * @var tnsBillingCap + */ + public $billingCap; + + /** + * @access public + * @var tnsBillingSchedule + */ + public $billingSchedule; + + /** + * @access public + * @var tnsBillingSource + */ + public $billingSource; + + /** + * @access public + * @var tnsBillingBase + */ + public $billingBase; + + /** + * @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 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 boolean + */ + public $isSold; + + /** + * @access public + * @var tnsProposalApprovalStatus + */ + public $approvalStatus; + + /** + * @access public + * @var DateTime + */ + public $lastModifiedDateTime; + + /** + * @access public + * @var ProposalLink[] + */ + public $resources; + + /** + * @access public + * @var DateTime + */ + public $actualExpiryTime; + + /** + * @access public + * @var DateTime + */ + public $expectedExpiryTime; + + /** + * @access public + * @var integer + */ + public $thirdPartyAdServerId; + + /** + * @access public + * @var string + */ + public $customThirdPartyAdServerName; + + /** + * @access public + * @var RetractionDetails + */ + public $lastRetractionDetails; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $dfpOrderId = null, $name = null, $pricingModel = null, $startDateTime = null, $endDateTime = null, $timeZoneId = null, $status = null, $isArchived = null, $advertiser = null, $agencies = null, $probabilityOfClose = null, $billingCap = null, $billingSchedule = null, $billingSource = null, $billingBase = 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, $currencyCode = null, $exchangeRate = null, $refreshExchangeRate = null, $agencyCommission = null, $valueAddedTax = null, $isSold = null, $approvalStatus = null, $lastModifiedDateTime = null, $resources = null, $actualExpiryTime = null, $expectedExpiryTime = null, $thirdPartyAdServerId = null, $customThirdPartyAdServerName = null, $lastRetractionDetails = null) { + $this->id = $id; + $this->dfpOrderId = $dfpOrderId; + $this->name = $name; + $this->pricingModel = $pricingModel; + $this->startDateTime = $startDateTime; + $this->endDateTime = $endDateTime; + $this->timeZoneId = $timeZoneId; + $this->status = $status; + $this->isArchived = $isArchived; + $this->advertiser = $advertiser; + $this->agencies = $agencies; + $this->probabilityOfClose = $probabilityOfClose; + $this->billingCap = $billingCap; + $this->billingSchedule = $billingSchedule; + $this->billingSource = $billingSource; + $this->billingBase = $billingBase; + $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->currencyCode = $currencyCode; + $this->exchangeRate = $exchangeRate; + $this->refreshExchangeRate = $refreshExchangeRate; + $this->agencyCommission = $agencyCommission; + $this->valueAddedTax = $valueAddedTax; + $this->isSold = $isSold; + $this->approvalStatus = $approvalStatus; + $this->lastModifiedDateTime = $lastModifiedDateTime; + $this->resources = $resources; + $this->actualExpiryTime = $actualExpiryTime; + $this->expectedExpiryTime = $expectedExpiryTime; + $this->thirdPartyAdServerId = $thirdPartyAdServerId; + $this->customThirdPartyAdServerName = $customThirdPartyAdServerName; + $this->lastRetractionDetails = $lastRetractionDetails; + } + + } +} + +if (!class_exists("ProposalError", false)) { + /** + * Lists all errors associated with proposals. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError"; + + /** + * @access public + * @var tnsProposalErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalLineItemError", false)) { + /** + * Lists all errors associated with proposal line items. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError"; + + /** + * @access public + * @var tnsProposalLineItemErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalPage", false)) { + /** + * Captures a page of {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RetractProposals", false)) { + /** + * The action used for retracting {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RetractProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RetractProposals"; + + /** + * @access public + * @var RetractionDetails + */ + public $retractionDetails; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($retractionDetails = null) { + parent::__construct(); + $this->retractionDetails = $retractionDetails; + } + + } +} + +if (!class_exists("RetractionDetails", false)) { + /** + * Details describing why a {@link Proposal} was retracted. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RetractionDetails { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RetractionDetails"; + + /** + * @access public + * @var integer + */ + public $retractionReasonId; + + /** + * @access public + * @var string + */ + public $comments; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($retractionReasonId = null, $comments = null) { + $this->retractionReasonId = $retractionReasonId; + $this->comments = $comments; + } + + } +} + +if (!class_exists("SalespersonSplit", false)) { + /** + * A {@code SalespersonSplit} represents a salesperson and his/her split. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SalespersonSplit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userId = null, $split = null) { + $this->userId = $userId; + $this->split = $split; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SubmitProposalsForApproval extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SubmitProposalsForApproval"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UnarchiveProposals", false)) { + /** + * The action used for unarchiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UnarchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UnarchiveProposals"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowActionError", false)) { + /** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowActionError"; + + /** + * @access public + * @var tnsWorkflowActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("WorkflowValidationError", false)) { + /** + * Lists all errors associated with workflow validation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowValidationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowValidationError"; + + /** + * @access public + * @var tnsWorkflowValidationErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $workflowErrorMessage; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->workflowErrorMessage = $workflowErrorMessage; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AvailableBillingErrorReason", false)) { + /** + * The error reason represented by an enum. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AvailableBillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AvailableBillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingBase", false)) { + /** + * Determines the base of billing calculation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingBase { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingBase"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class BillingCap { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingCap"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class BillingSchedule { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingSchedule"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillingSource", false)) { + /** + * Determines which billable numbers or delivery data (impressions, clicks, and so on) + * will be used for billing purposes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillingSource { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillingSource"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalApprovalStatus", false)) { + /** + * Describes the {@link Proposal} status in terms of pending approvals of active user. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalApprovalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalApprovalStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PackageErrorReason", false)) { + /** + * The reasons for the {@link PackageError}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PackageErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PackageError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PrecisionErrorReason", false)) { + /** + * Describes reasons for precision errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PrecisionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PrecisionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PricingModel", false)) { + /** + * The option to specify whether the proposal uses the Net or Gross pricing model. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PricingModel { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PricingModel"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProductErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProductError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalCompanyAssociationType", false)) { + /** + * Describes the type of a {@link Company} associated with a {@link Proposal}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalCompanyAssociationType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalCompanyAssociationType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalLineItemErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalLineItemErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalLineItemError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalStatus", false)) { + /** + * Describes the {@link Proposal} status. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowValidationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowValidationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowValidationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateProposals { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposals = null) { + $this->proposals = $proposals; + } + + } +} + +if (!class_exists("CreateProposalsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateProposalsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 dfpOrderId}{@link Proposal#dfpOrderId}
    {@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}
    {@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
    + * + * @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 v201505 + */ + class GetProposalsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetProposalsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetProposalsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProposalPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposalAction = null, $filterStatement = null) { + $this->proposalAction = $proposalAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformProposalActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformProposalActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateProposals", false)) { + /** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProposals { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Proposal[] + */ + public $proposals; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($proposals = null) { + $this->proposals = $proposals; + } + + } +} + +if (!class_exists("UpdateProposalsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateProposalsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Proposal[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ArchiveProposals", false)) { + /** + * The action used for archiving {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ArchiveProposals extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ArchiveProposals"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("BypassProposalWorkflowRules", false)) { + /** + * The action used to bypass all rules associated with {@link WorkflowRequest WorkflowRequests} + * for {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BypassProposalWorkflowRules extends ProposalAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BypassProposalWorkflowRules"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ProposalService", false)) { + /** + * ProposalService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalService extends DfpSoapClient { + + const SERVICE_NAME = "ProposalService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ProposalService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ProposalService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AppliedLabel" => "AppliedLabel", + "ArchiveProposals" => "ArchiveProposals", + "AuthenticationError" => "AuthenticationError", + "AvailableBillingError" => "AvailableBillingError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BillingError" => "BillingError", + "BooleanValue" => "BooleanValue", + "BypassProposalWorkflowRules" => "BypassProposalWorkflowRules", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DropDownCustomFieldValue" => "DropDownCustomFieldValue", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "ExchangeRateError" => "ExchangeRateError", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "InvalidUrlError" => "InvalidUrlError", + "LabelEntityAssociationError" => "LabelEntityAssociationError", + "LineItemOperationError" => "LineItemOperationError", + "Money" => "Money", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PackageActionError" => "PackageActionError", + "PackageError" => "PackageError", + "PermissionError" => "PermissionError", + "PrecisionError" => "PrecisionError", + "ProductError" => "ProductError", + "ProposalAction" => "ProposalAction", + "ProposalActionError" => "ProposalActionError", + "ProposalLink" => "ProposalLink", + "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", + "RetractionDetails" => "RetractionDetails", + "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", + "TimeZoneError" => "TimeZoneError", + "TypeError" => "TypeError", + "UnarchiveProposals" => "UnarchiveProposals", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "WorkflowActionError" => "WorkflowActionError", + "WorkflowValidationError" => "WorkflowValidationError", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AvailableBillingError.Reason" => "AvailableBillingErrorReason", + "BillingBase" => "BillingBase", + "BillingCap" => "BillingCap", + "BillingError.Reason" => "BillingErrorReason", + "BillingSchedule" => "BillingSchedule", + "BillingSource" => "BillingSource", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CustomFieldValueError.Reason" => "CustomFieldValueErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InvalidUrlError.Reason" => "InvalidUrlErrorReason", + "LabelEntityAssociationError.Reason" => "LabelEntityAssociationErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "ProposalApprovalStatus" => "ProposalApprovalStatus", + "NotNullError.Reason" => "NotNullErrorReason", + "PackageActionError.Reason" => "PackageActionErrorReason", + "PackageError.Reason" => "PackageErrorReason", + "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", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowValidationError.Reason" => "WorkflowValidationErrorReason", + "createProposals" => "CreateProposals", + "createProposalsResponse" => "CreateProposalsResponse", + "getProposalsByStatement" => "GetProposalsByStatement", + "getProposalsByStatementResponse" => "GetProposalsByStatementResponse", + "performProposalAction" => "PerformProposalAction", + "performProposalActionResponse" => "PerformProposalActionResponse", + "updateProposals" => "UpdateProposals", + "updateProposalsResponse" => "UpdateProposalsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateProposals($proposals); + $result = $this->__soapCall("createProposals", array($args)); + 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 dfpOrderId}{@link Proposal#dfpOrderId}
    {@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}
    {@code thirdPartyAdServerId}{@link Proposal#thirdPartyAdServerId}
    {@code customThirdPartyAdServerName}{@link Proposal#customThirdPartyAdServerName}
    + * + * @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) { + $args = new GetProposalsByStatement($filterStatement); + $result = $this->__soapCall("getProposalsByStatement", array($args)); + 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) { + $args = new PerformProposalAction($proposalAction, $filterStatement); + $result = $this->__soapCall("performProposalAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Proposal} objects. + * + * @param proposals the proposals to update + * @return the updated proposals + */ + public function updateProposals($proposals) { + $args = new UpdateProposals($proposals); + $result = $this->__soapCall("updateProposals", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/PublisherQueryLanguageService.php b/src/Google/Api/Ads/Dfp/v201505/PublisherQueryLanguageService.php new file mode 100755 index 000000000..def5dea92 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/PublisherQueryLanguageService.php @@ -0,0 +1,6633 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TechnologyTargeting", false)) { + /** + * Provides {@link LineItem} objects the ability to target or exclude + * technologies. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TechnologyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BandwidthGroupTargeting", false)) { + /** + * Represents bandwidth groups that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BandwidthGroupTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserLanguageTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class BrowserTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $browsers = null) { + $this->isTargeted = $isTargeted; + $this->browsers = $browsers; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ColumnType", false)) { + /** + * Contains information about a column in a {@link ResultSet}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ColumnType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ColumnType"; + + /** + * @access public + * @var string + */ + public $labelName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($labelName = null) { + $this->labelName = $labelName; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ContentMetadataKeyHierarchyTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ContentMetadataKeyHierarchyTargeting"; + + /** + * @access public + * @var integer[] + */ + public $customTargetingValueIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ContentTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("CreativeError", false)) { + /** + * Lists all errors associated with creatives. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError"; + + /** + * @access public + * @var tnsCreativeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaNode"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPart { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DayPartTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($dayParts = null, $timeZone = null) { + $this->dayParts = $dayParts; + $this->timeZone = $timeZone; + } + + } +} + +if (!class_exists("DeviceCapabilityTargeting", false)) { + /** + * Represents device capabilities that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapabilityTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceCategoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DeviceManufacturerTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isTargeted = null, $deviceManufacturers = null) { + $this->isTargeted = $isTargeted; + $this->deviceManufacturers = $deviceManufacturers; + } + + } +} + +if (!class_exists("ExchangeRateError", false)) { + /** + * Lists all errors associated with {@link ExchangeRate} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError"; + + /** + * @access public + * @var tnsExchangeRateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("FileError", false)) { + /** + * A list of all errors to be used for problems related to files. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError"; + + /** + * @access public + * @var tnsFileErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class GeoTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidUrlError", false)) { + /** + * Lists all errors associated with URLs. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError"; + + /** + * @access public + * @var tnsInvalidUrlErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryTargeting", false)) { + /** + * A collection of targeted and excluded ad units and placements. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryTargetingError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError"; + + /** + * @access public + * @var tnsInventoryTargetingErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InventoryUnitError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError"; + + /** + * @access public + * @var tnsInventoryUnitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemFlightDateError", false)) { + /** + * Lists all errors associated with LineItem start and end dates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError"; + + /** + * @access public + * @var tnsLineItemFlightDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class DfpLocation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Location"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $type; + + /** + * @access public + * @var integer + */ + public $canonicalParentId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $canonicalParentId = null, $displayName = null) { + $this->id = $id; + $this->type = $type; + $this->canonicalParentId = $canonicalParentId; + $this->displayName = $displayName; + } + + } +} + +if (!class_exists("MobileCarrierTargeting", false)) { + /** + * Represents mobile carriers that are being targeted or excluded by the {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrierTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceSubmodelTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class MobileDeviceTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Caused by supplying a non-null value for an attribute that should be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OperatingSystemTargeting", false)) { + /** + * Represents operating systems that are being targeted or excluded by the + * {@link LineItem}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class OperatingSystemVersionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($targetedOperatingSystemVersions = null, $excludedOperatingSystemVersions = null) { + $this->targetedOperatingSystemVersions = $targetedOperatingSystemVersions; + $this->excludedOperatingSystemVersions = $excludedOperatingSystemVersions; + } + + } +} + +if (!class_exists("OrderActionError", false)) { + /** + * Lists all errors associated with performing actions on {@link Order} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderActionError"; + + /** + * @access public + * @var tnsOrderActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("OrderError", false)) { + /** + * Lists all errors associated with orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError"; + + /** + * @access public + * @var tnsOrderErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class RegExError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError"; + + /** + * @access public + * @var tnsRegExErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredCollectionError", false)) { + /** + * A list of all errors to be used for validating sizes of collections. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredSizeError", false)) { + /** + * A list of all errors to be used for validating {@link Size}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError"; + + /** + * @access public + * @var tnsRequiredSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReservationDetailsError", false)) { + /** + * Lists all errors associated with LineItem's reservation details. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError"; + + /** + * @access public + * @var tnsReservationDetailsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ResultSet { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Row { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Row"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + $this->values = $values; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Targeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Technology"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("TimeOfDay", false)) { + /** + * Represents a specific time in a day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeOfDay { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class UserDomainTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($domains = null, $targeted = null) { + $this->domains = $domains; + $this->targeted = $targeted; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoPosition { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionTargeting { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionTargeting"; + + /** + * @access public + * @var VideoPositionTarget[] + */ + public $targetedPositions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class VideoPositionWithinPod { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPositionWithinPod"; + + /** + * @access public + * @var integer + */ + public $index; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($index = null) { + $this->index = $index; + } + + } +} + +if (!class_exists("VideoPositionTarget", false)) { + /** + * Represents the options for targetable positions within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionTarget { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class AdUnitAfcSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnitCodeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AdUnitHierarchyErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitHierarchyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CreativeErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreativeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CreativeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomCriteriaSetLogicalOperator", false)) { + /** + * Specifies the available logical operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaSetLogicalOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet.LogicalOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AudienceSegmentCriteriaComparisonOperator", false)) { + /** + * Specifies the available comparison operators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteriaComparisonOperator { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria.ComparisonOperator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DayOfWeek", false)) { + /** + * Days of the week. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DayOfWeek { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DayOfWeek"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DeliveryTimeZone", false)) { + /** + * Represents the time zone to be used for {@link DayPartTargeting}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeliveryTimeZone { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeliveryTimeZone"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExchangeRateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExchangeRateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExchangeRateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FileErrorReason", false)) { + /** + * The provided byte array is empty. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FileErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FileError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidUrlErrorReason", false)) { + /** + * The URL contains invalid characters. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidUrlErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidUrlError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryTargetingErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryTargetingErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryTargetingError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitErrorReason", false)) { + /** + * Possible reasons for the error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemFlightDateErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemFlightDateErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemFlightDateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("MinuteOfHour", false)) { + /** + * Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This + * field is required. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MinuteOfHour { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MinuteOfHour"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("OrderErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OrderErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OrderError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RegExErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RegExErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RegExError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredSizeErrorReason", false)) { + /** + * {@link Creative#size} or {@link LineItem#creativeSizes} is + * missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReservationDetailsErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReservationDetailsErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReservationDetailsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class VideoBumperType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoBumperType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("VideoPositionType", false)) { + /** + * Represents a targetable position within a video. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class VideoPositionType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "VideoPosition.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class Select { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $selectStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($selectStatement = null) { + $this->selectStatement = $selectStatement; + } + + } +} + +if (!class_exists("SelectResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SelectResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ResultSet + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AdUnitAfcSizeError", false)) { + /** + * Caused by supplying sizes that are not compatible with the Afc sizes. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitAfcSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitAfcSizeError"; + + /** + * @access public + * @var tnsAdUnitAfcSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitCodeError", false)) { + /** + * Lists the generic errors associated with {@link AdUnit#adUnitCode}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitCodeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitCodeError"; + + /** + * @access public + * @var tnsAdUnitCodeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("AdUnitHierarchyError", false)) { + /** + * Caused by creating an {@link AdUnit} object with an invalid hierarchy. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitHierarchyError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnitHierarchyError"; + + /** + * @access public + * @var tnsAdUnitHierarchyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +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 v201505 + */ + class BandwidthGroup extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BandwidthGroup"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("Browser", false)) { + /** + * Represents an internet browser. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Browser extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Browser"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("BrowserLanguage", false)) { + /** + * Represents a Browser's language. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BrowserLanguage extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BrowserLanguage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +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 v201505 + */ + class CustomCriteriaSet extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaSet"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($logicalOperator = null, $children = null) { + parent::__construct(); + $this->logicalOperator = $logicalOperator; + $this->children = $children; + } + + } +} + +if (!class_exists("CustomCriteriaLeaf", false)) { + /** + * A {@link CustomCriteriaLeaf} object represents a generic leaf of {@link CustomCriteria} tree + * structure. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomCriteriaLeaf extends CustomCriteriaNode { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteriaLeaf"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("AudienceSegmentCriteria", false)) { + /** + * An {@link AudienceSegmentCriteria} object is used to target {@link AudienceSegment} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AudienceSegmentCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AudienceSegmentCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operator = null, $audienceSegmentIds = null) { + parent::__construct(); + $this->operator = $operator; + $this->audienceSegmentIds = $audienceSegmentIds; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeviceCapability", false)) { + /** + * Represents a capability of a physical device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCapability extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCapability"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceCategory", false)) { + /** + * Represents the category of a device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceCategory extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceCategory"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("DeviceManufacturer", false)) { + /** + * Represents a mobile device's manufacturer. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeviceManufacturer extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeviceManufacturer"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileCarrier", false)) { + /** + * Represents a mobile carrier. + * Carrier targeting is only available to DFP mobile publishers. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileCarrier extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileCarrier"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDevice", false)) { + /** + * Represents a Mobile Device. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDevice extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDevice"; + + /** + * @access public + * @var integer + */ + public $manufacturerCriterionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($manufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->manufacturerCriterionId = $manufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("MobileDeviceSubmodel", false)) { + /** + * Represents a mobile device submodel. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class MobileDeviceSubmodel extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "MobileDeviceSubmodel"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileDeviceCriterionId = null, $deviceManufacturerCriterionId = null, $id = null, $name = null) { + parent::__construct(); + $this->mobileDeviceCriterionId = $mobileDeviceCriterionId; + $this->deviceManufacturerCriterionId = $deviceManufacturerCriterionId; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("OperatingSystem", false)) { + /** + * Represents an Operating System, such as Linux, Mac OS or Windows. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystem extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystem"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null) { + parent::__construct(); + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("OperatingSystemVersion", false)) { + /** + * Represents a specific version of an operating system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class OperatingSystemVersion extends Technology { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "OperatingSystemVersion"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($majorVersion = null, $minorVersion = null, $microVersion = null, $id = null, $name = null) { + parent::__construct(); + $this->majorVersion = $majorVersion; + $this->minorVersion = $minorVersion; + $this->microVersion = $microVersion; + $this->id = $id; + $this->name = $name; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TargetingValue", false)) { + /** + * Contains a {@link Targeting} value. + *

    + * This object is experimental! + * TargetingValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * TargetingValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetingValue extends ObjectValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetingValue"; + + /** + * @access public + * @var Targeting + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class CustomCriteria extends CustomCriteriaLeaf { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomCriteria"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($keyId = null, $valueIds = null, $operator = null) { + parent::__construct(); + $this->keyId = $keyId; + $this->valueIds = $valueIds; + $this->operator = $operator; + } + + } +} + +if (!class_exists("PublisherQueryLanguageService", false)) { + /** + * PublisherQueryLanguageService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageService extends DfpSoapClient { + + const SERVICE_NAME = "PublisherQueryLanguageService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/PublisherQueryLanguageService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/PublisherQueryLanguageService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "AdUnitAfcSizeError" => "AdUnitAfcSizeError", + "AdUnitCodeError" => "AdUnitCodeError", + "AdUnitHierarchyError" => "AdUnitHierarchyError", + "AdUnitTargeting" => "AdUnitTargeting", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "TechnologyTargeting" => "TechnologyTargeting", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BandwidthGroup" => "BandwidthGroup", + "BandwidthGroupTargeting" => "BandwidthGroupTargeting", + "BooleanValue" => "BooleanValue", + "Browser" => "Browser", + "BrowserLanguage" => "BrowserLanguage", + "BrowserLanguageTargeting" => "BrowserLanguageTargeting", + "BrowserTargeting" => "BrowserTargeting", + "CollectionSizeError" => "CollectionSizeError", + "ColumnType" => "ColumnType", + "CommonError" => "CommonError", + "ContentMetadataKeyHierarchyTargeting" => "ContentMetadataKeyHierarchyTargeting", + "ContentTargeting" => "ContentTargeting", + "CreativeError" => "CreativeError", + "CustomCriteria" => "CustomCriteria", + "CustomCriteriaSet" => "CustomCriteriaSet", + "CustomCriteriaLeaf" => "CustomCriteriaLeaf", + "CustomCriteriaNode" => "CustomCriteriaNode", + "AudienceSegmentCriteria" => "AudienceSegmentCriteria", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DayPart" => "DayPart", + "DayPartTargeting" => "DayPartTargeting", + "DeviceCapability" => "DeviceCapability", + "DeviceCapabilityTargeting" => "DeviceCapabilityTargeting", + "DeviceCategory" => "DeviceCategory", + "DeviceCategoryTargeting" => "DeviceCategoryTargeting", + "DeviceManufacturer" => "DeviceManufacturer", + "DeviceManufacturerTargeting" => "DeviceManufacturerTargeting", + "ExchangeRateError" => "ExchangeRateError", + "FeatureError" => "FeatureError", + "FileError" => "FileError", + "GeoTargeting" => "GeoTargeting", + "InternalApiError" => "InternalApiError", + "InvalidEmailError" => "InvalidEmailError", + "InvalidUrlError" => "InvalidUrlError", + "InventoryTargeting" => "InventoryTargeting", + "InventoryTargetingError" => "InventoryTargetingError", + "InventoryUnitError" => "InventoryUnitError", + "LineItemFlightDateError" => "LineItemFlightDateError", + "LineItemOperationError" => "LineItemOperationError", + "Location" => "DfpLocation", + "MobileCarrier" => "MobileCarrier", + "MobileCarrierTargeting" => "MobileCarrierTargeting", + "MobileDevice" => "MobileDevice", + "MobileDeviceSubmodel" => "MobileDeviceSubmodel", + "MobileDeviceSubmodelTargeting" => "MobileDeviceSubmodelTargeting", + "MobileDeviceTargeting" => "MobileDeviceTargeting", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "OperatingSystem" => "OperatingSystem", + "OperatingSystemTargeting" => "OperatingSystemTargeting", + "OperatingSystemVersion" => "OperatingSystemVersion", + "OperatingSystemVersionTargeting" => "OperatingSystemVersionTargeting", + "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", + "Targeting" => "Targeting", + "TargetingValue" => "TargetingValue", + "Technology" => "Technology", + "TextValue" => "TextValue", + "TimeOfDay" => "TimeOfDay", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UserDomainTargeting" => "UserDomainTargeting", + "Value" => "Value", + "VideoPosition" => "VideoPosition", + "VideoPositionTargeting" => "VideoPositionTargeting", + "VideoPositionWithinPod" => "VideoPositionWithinPod", + "VideoPositionTarget" => "VideoPositionTarget", + "AdUnitAfcSizeError.Reason" => "AdUnitAfcSizeErrorReason", + "AdUnitCodeError.Reason" => "AdUnitCodeErrorReason", + "AdUnitHierarchyError.Reason" => "AdUnitHierarchyErrorReason", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "CreativeError.Reason" => "CreativeErrorReason", + "CustomCriteria.ComparisonOperator" => "CustomCriteriaComparisonOperator", + "CustomCriteriaSet.LogicalOperator" => "CustomCriteriaSetLogicalOperator", + "AudienceSegmentCriteria.ComparisonOperator" => "AudienceSegmentCriteriaComparisonOperator", + "DayOfWeek" => "DayOfWeek", + "DeliveryTimeZone" => "DeliveryTimeZone", + "ExchangeRateError.Reason" => "ExchangeRateErrorReason", + "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", + "MinuteOfHour" => "MinuteOfHour", + "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", + "VideoBumperType" => "VideoBumperType", + "VideoPosition.Type" => "VideoPositionType", + "select" => "Select", + "selectResponse" => "SelectResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new Select($selectStatement); + $result = $this->__soapCall("select", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/RateCardService.php b/src/Google/Api/Ads/Dfp/v201505/RateCardService.php new file mode 100755 index 000000000..bda3f3340 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/RateCardService.php @@ -0,0 +1,3595 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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("EntityChildrenLimitReachedError", false)) { + /** + * Lists errors relating to having too many children on an entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError"; + + /** + * @access public + * @var tnsEntityChildrenLimitReachedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class EntityLimitReachedError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityLimitReachedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RateCardAction", false)) { + /** + * Represents the actions that can be performed on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateCardActionError", false)) { + /** + * An error lists all error reasons associated with performing action + * on {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardActionError"; + + /** + * @access public + * @var tnsRateCardActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class RateCard { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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("RateCardError", false)) { + /** + * An error having to do with {@link RateCard}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardError"; + + /** + * @access public + * @var tnsRateCardErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RateCardPage", false)) { + /** + * Captures a page of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class RequiredCollectionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError"; + + /** + * @access public + * @var tnsRequiredCollectionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredNumberError", false)) { + /** + * A list of all errors to be used in conjunction with required number + * validators. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError"; + + /** + * @access public + * @var tnsRequiredNumberErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors for Strings which do not meet given length constraints. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EntityChildrenLimitReachedErrorReason", false)) { + /** + * The reasons for the entity children limit reached error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EntityChildrenLimitReachedErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EntityChildrenLimitReachedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateCardActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateCardErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredCollectionErrorReason", false)) { + /** + * A required collection is missing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredCollectionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredCollectionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredNumberErrorReason", false)) { + /** + * Describes reasons for a number to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredNumberErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredNumberError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateCardStatus", false)) { + /** + * Describes the status of {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateCardStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateRateCards { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCards = null) { + $this->rateCards = $rateCards; + } + + } +} + +if (!class_exists("CreateRateCardsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateRateCardsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetRateCardsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetRateCardsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetRateCardsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCardPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformRateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCardAction = null, $filterStatement = null) { + $this->rateCardAction = $rateCardAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformRateCardActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformRateCardActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateRateCards { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCard[] + */ + public $rateCards; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rateCards = null) { + $this->rateCards = $rateCards; + } + + } +} + +if (!class_exists("UpdateRateCardsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateRateCardsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var RateCard[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateRateCards", false)) { + /** + * The action used to activate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateRateCards"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateRateCards", false)) { + /** + * The action used to deactivate {@link RateCard} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateRateCards extends RateCardAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateRateCards"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("RateCardService", false)) { + /** + * RateCardService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RateCardService extends DfpSoapClient { + + const SERVICE_NAME = "RateCardService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/RateCardService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/RateCardService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateRateCards" => "ActivateRateCards", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeactivateRateCards" => "DeactivateRateCards", + "EntityChildrenLimitReachedError" => "EntityChildrenLimitReachedError", + "EntityLimitReachedError" => "EntityLimitReachedError", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "NotNullError" => "NotNullError", + "NullError" => "NullError", + "NumberValue" => "NumberValue", + "ParseError" => "ParseError", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RateCardAction" => "RateCardAction", + "RateCardActionError" => "RateCardActionError", + "RateCard" => "RateCard", + "RateCardError" => "RateCardError", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EntityChildrenLimitReachedError.Reason" => "EntityChildrenLimitReachedErrorReason", + "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", + "RateCardActionError.Reason" => "RateCardActionErrorReason", + "RateCardError.Reason" => "RateCardErrorReason", + "RequiredCollectionError.Reason" => "RequiredCollectionErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "RequiredNumberError.Reason" => "RequiredNumberErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "RateCardStatus" => "RateCardStatus", + "StringLengthError.Reason" => "StringLengthErrorReason", + "TeamError.Reason" => "TeamErrorReason", + "createRateCards" => "CreateRateCards", + "createRateCardsResponse" => "CreateRateCardsResponse", + "getRateCardsByStatement" => "GetRateCardsByStatement", + "getRateCardsByStatementResponse" => "GetRateCardsByStatementResponse", + "performRateCardAction" => "PerformRateCardAction", + "performRateCardActionResponse" => "PerformRateCardActionResponse", + "updateRateCards" => "UpdateRateCards", + "updateRateCardsResponse" => "UpdateRateCardsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateRateCards($rateCards); + $result = $this->__soapCall("createRateCards", array($args)); + 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) { + $args = new GetRateCardsByStatement($filterStatement); + $result = $this->__soapCall("getRateCardsByStatement", array($args)); + 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) { + $args = new PerformRateCardAction($rateCardAction, $filterStatement); + $result = $this->__soapCall("performRateCardAction", array($args)); + 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) { + $args = new UpdateRateCards($rateCards); + $result = $this->__soapCall("updateRateCards", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ReconciliationOrderReportService.php b/src/Google/Api/Ads/Dfp/v201505/ReconciliationOrderReportService.php new file mode 100755 index 000000000..0614d2a2a --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ReconciliationOrderReportService.php @@ -0,0 +1,2909 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationOrderReportAction", false)) { + /** + * Represents the actions that can be performed on the {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationOrderReportAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationOrderReport", false)) { + /** + * A {@link ReconciliationOrderReport} represents one order + * in the reconciliation report. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationOrderReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationOrderReport"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var integer + */ + public $reconciliationReportId; + + /** + * @access public + * @var integer + */ + public $orderId; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $reconciliationReportId = null, $orderId = null, $proposalId = null, $status = null, $submissionDateTime = null, $submitterId = null) { + $this->id = $id; + $this->reconciliationReportId = $reconciliationReportId; + $this->orderId = $orderId; + $this->proposalId = $proposalId; + $this->status = $status; + $this->submissionDateTime = $submissionDateTime; + $this->submitterId = $submitterId; + } + + } +} + +if (!class_exists("ReconciliationOrderReportPage", false)) { + /** + * Captures a page of {@link ReconciliationOrderReport} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationOrderReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SubmitReconciliationOrderReports", false)) { + /** + * The action used for submit the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SubmitReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SubmitReconciliationOrderReports"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ReconciliationError", false)) { + /** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError"; + + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RevertReconciliationOrderReports", false)) { + /** + * The action used to revert the reconciliation on the {@link ReconciliationOrderReport}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RevertReconciliationOrderReports extends ReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RevertReconciliationOrderReports"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationOrderReportStatus", false)) { + /** + * The status of the reconciliation order report. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationOrderReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationOrderReportStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 proposalId}{@link ReconciliationOrderReport#proposalId}
    {@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 v201505 + */ + class GetReconciliationOrderReportsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetReconciliationOrderReportsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReconciliationOrderReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationOrderReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 proposalId}{@link ReconciliationOrderReport#proposalId}
    {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
    + * The following statement patterns are supported: + *
      + *
    • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
    • + *
    • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
    • + *
    • reconciliationReportId = :reconciliationReportId + * AND (orderId IN (...) OR proposalId IN (...))
    • + *
    + * The IN clause could be expanded to multiple OR expressions like + * (orderId = :orderId OR orderId = :orderId OR ...) + * 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 v201505 + */ + class PerformReconciliationOrderReportAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reconciliationOrderReportAction = null, $filterStatement = null) { + $this->reconciliationOrderReportAction = $reconciliationOrderReportAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformReconciliationOrderReportActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformReconciliationOrderReportActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ReconciliationOrderReportService", false)) { + /** + * ReconciliationOrderReportService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationOrderReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationOrderReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationOrderReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationOrderReportService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getReconciliationOrderReportsByStatement" => "GetReconciliationOrderReportsByStatement", + "getReconciliationOrderReportsByStatementResponse" => "GetReconciliationOrderReportsByStatementResponse", + "performReconciliationOrderReportAction" => "PerformReconciliationOrderReportAction", + "performReconciliationOrderReportActionResponse" => "PerformReconciliationOrderReportActionResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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 proposalId}{@link ReconciliationOrderReport#proposalId}
    {@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) { + $args = new GetReconciliationOrderReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationOrderReportsByStatement", array($args)); + 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 proposalId}{@link ReconciliationOrderReport#proposalId}
    {@code reconciliationReportId}{@link ReconciliationOrderReport#reconciliationReportId}
    + * The following statement patterns are supported: + *

      + *
    • reconciliationReportId = :reconciliationReportId AND orderId = :orderId
    • + *
    • reconciliationReportId = :reconciliationReportId AND proposalId = :proposalId
    • + *
    • reconciliationReportId = :reconciliationReportId + * AND (orderId IN (...) OR proposalId IN (...))
    • + *
    + * The IN clause could be expanded to multiple OR expressions like + * (orderId = :orderId OR orderId = :orderId OR ...) + * 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) { + $args = new PerformReconciliationOrderReportAction($reconciliationOrderReportAction, $filterStatement); + $result = $this->__soapCall("performReconciliationOrderReportAction", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportRowService.php b/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportRowService.php new file mode 100755 index 000000000..f23a7c231 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportRowService.php @@ -0,0 +1,3044 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Money", false)) { + /** + * Represents a money amount. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Money { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationError", false)) { + /** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError"; + + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationImportError", false)) { + /** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationImportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationImportError"; + + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ReconciliationReportRow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 integer + */ + public $proposalLineItemId; + + /** + * @access public + * @var integer + */ + public $proposalId; + + /** + * @access public + * @var tnsBillFrom + */ + public $billFrom; + + /** + * @access public + * @var tnsRateType + */ + public $rateType; + + /** + * @access public + * @var Money + */ + public $lineItemCostPerUnit; + + /** + * @access public + * @var integer + */ + public $lineItemContractedUnitsBought; + + /** + * @access public + * @var integer + */ + public $dfpVolume; + + /** + * @access public + * @var integer + */ + public $thirdPartyVolume; + + /** + * @access public + * @var integer + */ + public $manualVolume; + + /** + * @access public + * @var integer + */ + public $reconciledVolume; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reconciliationReportId = null, $lineItemId = null, $creativeId = null, $orderId = null, $advertiserId = null, $proposalLineItemId = null, $proposalId = null, $billFrom = null, $rateType = null, $lineItemCostPerUnit = null, $lineItemContractedUnitsBought = null, $dfpVolume = null, $thirdPartyVolume = null, $manualVolume = null, $reconciledVolume = 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->proposalLineItemId = $proposalLineItemId; + $this->proposalId = $proposalId; + $this->billFrom = $billFrom; + $this->rateType = $rateType; + $this->lineItemCostPerUnit = $lineItemCostPerUnit; + $this->lineItemContractedUnitsBought = $lineItemContractedUnitsBought; + $this->dfpVolume = $dfpVolume; + $this->thirdPartyVolume = $thirdPartyVolume; + $this->manualVolume = $manualVolume; + $this->reconciledVolume = $reconciledVolume; + $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 v201505 + */ + class ReconciliationReportRowPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("BillFrom", false)) { + /** + * Values for which to bill from. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BillFrom { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BillFrom"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class RateType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RateType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationImportErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationImportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationImportError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetReconciliationReportRowsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetReconciliationReportRowsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReconciliationReportRowsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReportRowPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateReconciliationReportRows { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $reconciliationReportRows; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reconciliationReportRows = null) { + $this->reconciliationReportRows = $reconciliationReportRows; + } + + } +} + +if (!class_exists("UpdateReconciliationReportRowsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateReconciliationReportRowsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReportRow[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ReconciliationReportRowService", false)) { + /** + * ReconciliationReportRowService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationReportRowService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportRowService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationReportRowService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationReportRowService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "BillFrom" => "BillFrom", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "RateType" => "RateType", + "ReconciliationError.Reason" => "ReconciliationErrorReason", + "ReconciliationImportError.Reason" => "ReconciliationImportErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "getReconciliationReportRowsByStatement" => "GetReconciliationReportRowsByStatement", + "getReconciliationReportRowsByStatementResponse" => "GetReconciliationReportRowsByStatementResponse", + "updateReconciliationReportRows" => "UpdateReconciliationReportRows", + "updateReconciliationReportRowsResponse" => "UpdateReconciliationReportRowsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetReconciliationReportRowsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportRowsByStatement", array($args)); + 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) { + $args = new UpdateReconciliationReportRows($reconciliationReportRows); + $result = $this->__soapCall("updateReconciliationReportRows", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportService.php b/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportService.php new file mode 100755 index 000000000..5cc3c56fd --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ReconciliationReportService.php @@ -0,0 +1,2712 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationError", false)) { + /** + * Lists all errors associated with reconciliation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError"; + + /** + * @access public + * @var tnsReconciliationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationImportError", false)) { + /** + * The API errors for reconciliation CSV import. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationImportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationImportError"; + + /** + * @access public + * @var tnsReconciliationImportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReconciliationReport", false)) { + /** + * A {@code ReconciliationReport} represents a report that can be reconciled. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationReport { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ReconciliationReportPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationImportErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationImportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationImportError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReconciliationReportStatus", false)) { + /** + * A {@code ReconciliationReportStatus} represents the status of a {@link ReconciliationReport}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationReportStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReconciliationReportStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetReconciliationReportsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetReconciliationReportsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReconciliationReportsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReportPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateReconciliationReports { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReport[] + */ + public $reconciliationReports; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reconciliationReports = null) { + $this->reconciliationReports = $reconciliationReports; + } + + } +} + +if (!class_exists("UpdateReconciliationReportsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateReconciliationReportsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReconciliationReport[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ReconciliationReportService", false)) { + /** + * ReconciliationReportService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReconciliationReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReconciliationReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ReconciliationReportService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getReconciliationReportsByStatement" => "GetReconciliationReportsByStatement", + "getReconciliationReportsByStatementResponse" => "GetReconciliationReportsByStatementResponse", + "updateReconciliationReports" => "UpdateReconciliationReports", + "updateReconciliationReportsResponse" => "UpdateReconciliationReportsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetReconciliationReportsByStatement($filterStatement); + $result = $this->__soapCall("getReconciliationReportsByStatement", array($args)); + 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) { + $args = new UpdateReconciliationReports($reconciliationReports); + $result = $this->__soapCall("updateReconciliationReports", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/ReportService.php b/src/Google/Api/Ads/Dfp/v201505/ReportService.php new file mode 100755 index 000000000..664cc6a37 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/ReportService.php @@ -0,0 +1,3111 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ReportDownloadOptions", false)) { + /** + * Represents the options for an API report download request. + * See {@link ReportService#getReportDownloadUrlWithOptions}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReportDownloadOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ReportError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReportError"; + + /** + * @access public + * @var tnsReportErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class ReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ReportQuery { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 integer[] + */ + public $contentMetadataKeyHierarchyCustomTargetingKeyIds; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($dimensions = null, $adUnitView = null, $columns = null, $dimensionAttributes = null, $customFieldIds = null, $contentMetadataKeyHierarchyCustomTargetingKeyIds = 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->contentMetadataKeyHierarchyCustomTargetingKeyIds = $contentMetadataKeyHierarchyCustomTargetingKeyIds; + $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 v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReportQueryAdUnitView", false)) { + /** + * A view for an ad unit report. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReportQueryAdUnitView { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReportQuery.AdUnitView"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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_NAME}. + * 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 v201505 + */ + class Column { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Column"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateRangeType", false)) { + /** + * Represents a period of time. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateRangeType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateRangeType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class Dimension { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Dimension"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class DimensionAttribute { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DimensionAttribute"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DimensionFilter", false)) { + /** + * {@code DimensionFilter} filters the data used during report creation. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DimensionFilter { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DimensionFilter"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ExportFormat", false)) { + /** + * The file formats available for creating the report. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ExportFormat { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ExportFormat"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReportErrorReason", false)) { + /** + * Default {@code ReportError} when the reason is not among any already + * defined. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReportErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReportError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReportJobStatus", false)) { + /** + * Represents the status of a {@link ReportJob} running on the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ReportJobStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetReportDownloadURL { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reportJobId = null, $exportFormat = null) { + $this->reportJobId = $reportJobId; + $this->exportFormat = $exportFormat; + } + + } +} + +if (!class_exists("GetReportDownloadURLResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReportDownloadURLResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetReportDownloadUrlWithOptions { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reportJobId = null, $reportDownloadOptions = null) { + $this->reportJobId = $reportJobId; + $this->reportDownloadOptions = $reportDownloadOptions; + } + + } +} + +if (!class_exists("GetReportDownloadUrlWithOptionsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReportDownloadUrlWithOptionsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var string + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetReportJobStatus", false)) { + /** + * Returns the {@link ReportJobStatus} of the report job with the specified ID. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReportJobStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var integer + */ + public $reportJobId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reportJobId = null) { + $this->reportJobId = $reportJobId; + } + + } +} + +if (!class_exists("GetReportJobStatusResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetReportJobStatusResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var tnsReportJobStatus + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class RunReportJob { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReportJob + */ + public $reportJob; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reportJob = null) { + $this->reportJob = $reportJob; + } + + } +} + +if (!class_exists("RunReportJobResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RunReportJobResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ReportJob + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("ReportService", false)) { + /** + * ReportService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ReportService extends DfpSoapClient { + + const SERVICE_NAME = "ReportService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/ReportService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/ReportService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ReportQuery.AdUnitView" => "ReportQueryAdUnitView", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "getReportJobStatus" => "GetReportJobStatus", + "getReportJobStatusResponse" => "GetReportJobStatusResponse", + "runReportJob" => "RunReportJob", + "runReportJobResponse" => "RunReportJobResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetReportDownloadURL($reportJobId, $exportFormat); + $result = $this->__soapCall("getReportDownloadURL", array($args)); + 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) { + $args = new GetReportDownloadUrlWithOptions($reportJobId, $reportDownloadOptions); + $result = $this->__soapCall("getReportDownloadUrlWithOptions", array($args)); + return $result->rval; + } + /** + * Returns the {@link ReportJobStatus} of the report job with the specified ID. + */ + public function getReportJobStatus($reportJobId) { + $args = new GetReportJobStatus($reportJobId); + $result = $this->__soapCall("getReportJobStatus", array($args)); + 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) { + $args = new RunReportJob($reportJob); + $result = $this->__soapCall("runReportJob", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/SharedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201505/SharedAdUnitService.php new file mode 100755 index 000000000..ce76bcab2 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/SharedAdUnitService.php @@ -0,0 +1,2757 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($size = null, $environmentType = null, $companions = null, $fullDisplayString = null) { + $this->size = $size; + $this->environmentType = $environmentType; + $this->companions = $companions; + $this->fullDisplayString = $fullDisplayString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SharedAdUnitAction", false)) { + /** + * Represents the actions that can be performed on {@link SharedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SharedAdUnitAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SharedAdUnit", false)) { + /** + * An ad unit that is shared from a distributor network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SharedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SharedAdUnit"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var string + */ + public $name; + + /** + * @access public + * @var string + */ + public $distributorName; + + /** + * @access public + * @var integer + */ + public $contentProviderAdUnitId; + + /** + * @access public + * @var tnsSharedAdUnitStatus + */ + public $status; + + /** + * @access public + * @var tnsTargetPlatform + */ + public $targetPlatform; + + /** + * @access public + * @var tnsAdUnitTargetWindow + */ + public $targetWindow; + + /** + * @access public + * @var AdUnitSize[] + */ + public $adUnitSizes; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $distributorName = null, $contentProviderAdUnitId = null, $status = null, $targetPlatform = null, $targetWindow = null, $adUnitSizes = null) { + $this->id = $id; + $this->name = $name; + $this->distributorName = $distributorName; + $this->contentProviderAdUnitId = $contentProviderAdUnitId; + $this->status = $status; + $this->targetPlatform = $targetPlatform; + $this->targetWindow = $targetWindow; + $this->adUnitSizes = $adUnitSizes; + } + + } +} + +if (!class_exists("SharedAdUnitPage", false)) { + /** + * Captures a page of {@link SharedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SharedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SharedAdUnitPage"; + + /** + * @access public + * @var integer + */ + public $totalResultSetSize; + + /** + * @access public + * @var integer + */ + public $startIndex; + + /** + * @access public + * @var SharedAdUnit[] + */ + public $results; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalResultSetSize = null, $startIndex = null, $results = null) { + $this->totalResultSetSize = $totalResultSetSize; + $this->startIndex = $startIndex; + $this->results = $results; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitTargetWindow", false)) { + /** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnit.TargetWindow"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SharedAdUnitStatus", false)) { + /** + * Indicates the supported statuses of {@link SharedAdUnit shared ad units}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SharedAdUnitStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SharedAdUnitStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetSharedAdUnitsByStatement", false)) { + /** + * Gets a {@link SharedAdUnitPage} of {@link SharedAdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link SharedAdUnit#id}
    {@code name}{@link SharedAdUnit#name}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the shared ad units that match the given filter + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetSharedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetSharedAdUnitsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetSharedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var SharedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("PerformSharedAdUnitAction", false)) { + /** + * Performs actions on shared ad unit objects that match the given + * {@link Statement#query}. + * + * @param sharedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the result of the update action, which contains the number of shared ad units + * on which the action was performed. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformSharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var SharedAdUnitAction + */ + public $sharedAdUnitAction; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($sharedAdUnitAction = null, $filterStatement = null) { + $this->sharedAdUnitAction = $sharedAdUnitAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformSharedAdUnitActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformSharedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ApproveSharedAdUnits", false)) { + /** + * Action to approve shared ad units. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApproveSharedAdUnits extends SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveSharedAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("RejectSharedAdUnits", false)) { + /** + * Action to reject shared ad units. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RejectSharedAdUnits extends SharedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RejectSharedAdUnits"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SharedAdUnitService", false)) { + /** + * SharedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SharedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SharedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/SharedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/SharedAdUnitService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveSharedAdUnits" => "ApproveSharedAdUnits", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "PermissionError" => "PermissionError", + "PublisherQueryLanguageContextError" => "PublisherQueryLanguageContextError", + "PublisherQueryLanguageSyntaxError" => "PublisherQueryLanguageSyntaxError", + "QuotaError" => "QuotaError", + "RejectSharedAdUnits" => "RejectSharedAdUnits", + "ServerError" => "ServerError", + "SetValue" => "SetValue", + "SharedAdUnitAction" => "SharedAdUnitAction", + "SharedAdUnit" => "SharedAdUnit", + "SharedAdUnitPage" => "SharedAdUnitPage", + "Size" => "Size", + "SoapRequestHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "Statement" => "Statement", + "StatementError" => "StatementError", + "String_ValueMapEntry" => "String_ValueMapEntry", + "TextValue" => "TextValue", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "Value" => "Value", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "SharedAdUnitStatus" => "SharedAdUnitStatus", + "StatementError.Reason" => "StatementErrorReason", + "TargetPlatform" => "TargetPlatform", + "getSharedAdUnitsByStatement" => "GetSharedAdUnitsByStatement", + "getSharedAdUnitsByStatementResponse" => "GetSharedAdUnitsByStatementResponse", + "performSharedAdUnitAction" => "PerformSharedAdUnitAction", + "performSharedAdUnitActionResponse" => "PerformSharedAdUnitActionResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Gets a {@link SharedAdUnitPage} of {@link SharedAdUnit} objects that satisfy the given + * {@link Statement#query}. The following fields are supported for filtering: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    PQL Property Object Property
    {@code id}{@link SharedAdUnit#id}
    {@code name}{@link SharedAdUnit#name}
    + * + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the shared ad units that match the given filter + */ + public function getSharedAdUnitsByStatement($filterStatement) { + $args = new GetSharedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSharedAdUnitsByStatement", array($args)); + return $result->rval; + } + /** + * Performs actions on shared ad unit objects that match the given + * {@link Statement#query}. + * + * @param sharedAdUnitAction the action to perform + * @param filterStatement a Publisher Query Language statement used to filter + * a set of shared ad units + * @return the result of the update action, which contains the number of shared ad units + * on which the action was performed. + */ + public function performSharedAdUnitAction($sharedAdUnitAction, $filterStatement) { + $args = new PerformSharedAdUnitAction($sharedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSharedAdUnitAction", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/SuggestedAdUnitService.php b/src/Google/Api/Ads/Dfp/v201505/SuggestedAdUnitService.php new file mode 100755 index 000000000..dae33bf00 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/SuggestedAdUnitService.php @@ -0,0 +1,3133 @@ +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 v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class AdUnitSize { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class InventoryUnitSizesError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitSizesError"; + + /** + * @access public + * @var tnsInventoryUnitSizesErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LabelEntityAssociationError", false)) { + /** + * Errors specific to creating label entity associations. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError"; + + /** + * @access public + * @var tnsLabelEntityAssociationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Size", false)) { + /** + * Represents the dimensions of an {@link AdUnit}, {@link LineItem} or {@link Creative}. + *

    + * For interstitial size (out-of-page) and native size, {@code Size} must be 1x1. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Size { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SuggestedAdUnitAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class SuggestedAdUnit { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class SuggestedAdUnitPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class SuggestedAdUnitUpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AdUnitTargetWindow", false)) { + /** + * Corresponds to an HTML link's {@code target} attribute. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AdUnitTargetWindow { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AdUnit.TargetWindow"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("EnvironmentType", false)) { + /** + * Enum for the valid environments in which ads can be shown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class EnvironmentType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "EnvironmentType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InventoryUnitSizesErrorReason", false)) { + /** + * All possible reasons the error can be thrown. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InventoryUnitSizesErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InventoryUnitSizesError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LabelEntityAssociationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LabelEntityAssociationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LabelEntityAssociationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TargetPlatform", false)) { + /** + * Indicates the target platform. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TargetPlatform { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TargetPlatform"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetSuggestedAdUnitsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetSuggestedAdUnitsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetSuggestedAdUnitsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var SuggestedAdUnitPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformSuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($suggestedAdUnitAction = null, $filterStatement = null) { + $this->suggestedAdUnitAction = $suggestedAdUnitAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformSuggestedAdUnitActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformSuggestedAdUnitActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var SuggestedAdUnitUpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ApproveSuggestedAdUnit", false)) { + /** + * Action to approve {@link SuggestedAdUnit} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApproveSuggestedAdUnit extends SuggestedAdUnitAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveSuggestedAdUnit"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SuggestedAdUnitService", false)) { + /** + * SuggestedAdUnitService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SuggestedAdUnitService extends DfpSoapClient { + + const SERVICE_NAME = "SuggestedAdUnitService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/SuggestedAdUnitService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/SuggestedAdUnitService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "AdUnitParent" => "AdUnitParent", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveSuggestedAdUnit" => "ApproveSuggestedAdUnit", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "FeatureError" => "FeatureError", + "InternalApiError" => "InternalApiError", + "AdUnitSize" => "AdUnitSize", + "InventoryUnitSizesError" => "InventoryUnitSizesError", + "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", + "SuggestedAdUnitAction" => "SuggestedAdUnitAction", + "SuggestedAdUnit" => "SuggestedAdUnit", + "SuggestedAdUnitPage" => "SuggestedAdUnitPage", + "SuggestedAdUnitUpdateResult" => "SuggestedAdUnitUpdateResult", + "TextValue" => "TextValue", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "Value" => "Value", + "AdUnit.TargetWindow" => "AdUnitTargetWindow", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "EnvironmentType" => "EnvironmentType", + "FeatureError.Reason" => "FeatureErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "InventoryUnitSizesError.Reason" => "InventoryUnitSizesErrorReason", + "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", + "getSuggestedAdUnitsByStatement" => "GetSuggestedAdUnitsByStatement", + "getSuggestedAdUnitsByStatementResponse" => "GetSuggestedAdUnitsByStatementResponse", + "performSuggestedAdUnitAction" => "PerformSuggestedAdUnitAction", + "performSuggestedAdUnitActionResponse" => "PerformSuggestedAdUnitActionResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new GetSuggestedAdUnitsByStatement($filterStatement); + $result = $this->__soapCall("getSuggestedAdUnitsByStatement", array($args)); + 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) { + $args = new PerformSuggestedAdUnitAction($suggestedAdUnitAction, $filterStatement); + $result = $this->__soapCall("performSuggestedAdUnitAction", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/TeamService.php b/src/Google/Api/Ads/Dfp/v201505/TeamService.php new file mode 100755 index 000000000..6caa63efc --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/TeamService.php @@ -0,0 +1,2772 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Team { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * @access public + * @var integer[] + */ + public $orderIds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $description = null, $hasAllCompanies = null, $hasAllInventory = null, $teamAccessType = null, $companyIds = null, $adUnitIds = null, $orderIds = 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; + $this->orderIds = $orderIds; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TeamPage", false)) { + /** + * Captures a page of {@link Team} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamAccessType", false)) { + /** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamAccessType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($teams = null) { + $this->teams = $teams; + } + + } +} + +if (!class_exists("CreateTeamsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetTeamsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetTeamsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetTeamsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var TeamPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateTeams", false)) { + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateTeams { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Team[] + */ + public $teams; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($teams = null) { + $this->teams = $teams; + } + + } +} + +if (!class_exists("UpdateTeamsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateTeamsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Team[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("TeamService", false)) { + /** + * TeamService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamService extends DfpSoapClient { + + const SERVICE_NAME = "TeamService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/TeamService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/TeamService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createTeams" => "CreateTeams", + "createTeamsResponse" => "CreateTeamsResponse", + "getTeamsByStatement" => "GetTeamsByStatement", + "getTeamsByStatementResponse" => "GetTeamsByStatementResponse", + "updateTeams" => "UpdateTeams", + "updateTeamsResponse" => "UpdateTeamsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateTeams($teams); + $result = $this->__soapCall("createTeams", array($args)); + 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) { + $args = new GetTeamsByStatement($filterStatement); + $result = $this->__soapCall("getTeamsByStatement", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link Team} objects. + * + * @param teams the teams to update + * @return the updated teams + */ + public function updateTeams($teams) { + $args = new UpdateTeams($teams); + $result = $this->__soapCall("updateTeams", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/UserService.php b/src/Google/Api/Ads/Dfp/v201505/UserService.php new file mode 100755 index 000000000..cb0c043e1 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/UserService.php @@ -0,0 +1,3751 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("BaseCustomFieldValue", false)) { + /** + * The value of a {@link CustomField} for a particular entity. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BaseCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldId = null) { + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class CustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValue"; + + /** + * @access public + * @var Value + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null, $customFieldId = null) { + parent::__construct(); + $this->value = $value; + $this->customFieldId = $customFieldId; + } + + } +} + +if (!class_exists("CustomFieldValueError", false)) { + /** + * Errors specific to editing custom field values + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError"; + + /** + * @access public + * @var tnsCustomFieldValueErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class DropDownCustomFieldValue extends BaseCustomFieldValue { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DropDownCustomFieldValue"; + + /** + * @access public + * @var integer + */ + public $customFieldOptionId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($customFieldOptionId = null, $customFieldId = null) { + parent::__construct(); + $this->customFieldOptionId = $customFieldOptionId; + $this->customFieldId = $customFieldId; + } + + } +} + +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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InvalidEmailError", false)) { + /** + * Caused by supplying a value for an email attribute that is not a valid + * email address. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError"; + + /** + * @access public + * @var tnsInvalidEmailErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ParseError", false)) { + /** + * Lists errors related to parsing. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError"; + + /** + * @access public + * @var tnsParseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Role", false)) { + /** + * Each {@code Role} provides a user with permissions to perform specific + * operations in the system. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Role { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $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 v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($key = null, $value = null) { + $this->key = $key; + $this->value = $value; + } + + } +} + +if (!class_exists("TeamError", false)) { + /** + * Errors related to a Team. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError"; + + /** + * @access public + * @var tnsTeamErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TimeZoneError", false)) { + /** + * Errors related to timezones. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError"; + + /** + * @access public + * @var tnsTimeZoneErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TokenError", false)) { + /** + * An error for an exception that occurred when using a token. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TokenError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TokenError"; + + /** + * @access public + * @var tnsTokenErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("TypeError", false)) { + /** + * An error for a field which is an invalid type. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TypeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TypeError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UniqueError", false)) { + /** + * An error for a field which must satisfy a uniqueness constraint + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UniqueError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UniqueError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("UpdateResult", false)) { + /** + * Represents the result of performing an action on objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("UserAction", false)) { + /** + * Represents the actions that can be performed on {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("UserPage", false)) { + /** + * Captures a page of {@link User} objects + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null) { + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CustomFieldValueErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CustomFieldValueErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CustomFieldValueError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InvalidEmailErrorReason", false)) { + /** + * Describes reasons for an email to be invalid. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InvalidEmailErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InvalidEmailError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ParseErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ParseErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ParseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TimeZoneErrorReason", false)) { + /** + * Describes reasons for invalid timezone. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TimeZoneErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TimeZoneError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TokenErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TokenErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TokenError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($users = null) { + $this->users = $users; + } + + } +} + +if (!class_exists("CreateUsersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetAllRoles { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetAllRolesResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetAllRolesResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Role[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("GetCurrentUser", false)) { + /** + * Returns the current {@link User}. + * + * @return the current user + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCurrentUser { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("GetCurrentUserResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetCurrentUserResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var User + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetUsersByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetUsersByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetUsersByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformUserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userAction = null, $filterStatement = null) { + $this->userAction = $userAction; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformUserActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformUserActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("UpdateUsers", false)) { + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateUsers { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var User[] + */ + public $users; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($users = null) { + $this->users = $users; + } + + } +} + +if (!class_exists("UpdateUsersResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateUsersResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var User[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ActivateUsers", false)) { + /** + * The action used for activating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ActivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ActivateUsers"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeactivateUsers", false)) { + /** + * The action used for deactivating {@link User} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeactivateUsers extends UserAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeactivateUsers"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +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 v201505 + */ + class User extends UserRecord { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "User"; + + /** + * @access public + * @var boolean + */ + public $isActive; + + /** + * @access public + * @var boolean + */ + public $isEmailNotificationAllowed; + + /** + * @access public + * @var string + */ + public $externalId; + + /** + * @access public + * @var boolean + */ + public $isServiceAccount; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($isActive = null, $isEmailNotificationAllowed = null, $externalId = null, $isServiceAccount = null, $ordersUiLocalTimeZoneId = null, $customFieldValues = null, $id = null, $name = null, $email = null, $roleId = null, $roleName = null, $preferredLocale = null) { + parent::__construct(); + $this->isActive = $isActive; + $this->isEmailNotificationAllowed = $isEmailNotificationAllowed; + $this->externalId = $externalId; + $this->isServiceAccount = $isServiceAccount; + $this->ordersUiLocalTimeZoneId = $ordersUiLocalTimeZoneId; + $this->customFieldValues = $customFieldValues; + $this->id = $id; + $this->name = $name; + $this->email = $email; + $this->roleId = $roleId; + $this->roleName = $roleName; + $this->preferredLocale = $preferredLocale; + } + + } +} + +if (!class_exists("UserService", false)) { + /** + * UserService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserService extends DfpSoapClient { + + const SERVICE_NAME = "UserService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/UserService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/UserService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ActivateUsers" => "ActivateUsers", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BaseCustomFieldValue" => "BaseCustomFieldValue", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "CustomFieldValue" => "CustomFieldValue", + "CustomFieldValueError" => "CustomFieldValueError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "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", + "TimeZoneError" => "TimeZoneError", + "TokenError" => "TokenError", + "TypeError" => "TypeError", + "UniqueError" => "UniqueError", + "UpdateResult" => "UpdateResult", + "UserAction" => "UserAction", + "User" => "User", + "UserPage" => "UserPage", + "UserRecord" => "UserRecord", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "TimeZoneError.Reason" => "TimeZoneErrorReason", + "TokenError.Reason" => "TokenErrorReason", + "createUsers" => "CreateUsers", + "createUsersResponse" => "CreateUsersResponse", + "getAllRoles" => "GetAllRoles", + "getAllRolesResponse" => "GetAllRolesResponse", + "getCurrentUser" => "GetCurrentUser", + "getCurrentUserResponse" => "GetCurrentUserResponse", + "getUsersByStatement" => "GetUsersByStatement", + "getUsersByStatementResponse" => "GetUsersByStatementResponse", + "performUserAction" => "PerformUserAction", + "performUserActionResponse" => "PerformUserActionResponse", + "updateUsers" => "UpdateUsers", + "updateUsersResponse" => "UpdateUsersResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * Creates new {@link User} objects. + * + * @param users the users to create + * @return the created users with their IDs filled in + */ + public function createUsers($users) { + $args = new CreateUsers($users); + $result = $this->__soapCall("createUsers", array($args)); + 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() { + $args = new GetAllRoles(); + $result = $this->__soapCall("getAllRoles", array($args)); + return $result->rval; + } + /** + * Returns the current {@link User}. + * + * @return the current user + */ + public function getCurrentUser() { + $args = new GetCurrentUser(); + $result = $this->__soapCall("getCurrentUser", array($args)); + 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) { + $args = new GetUsersByStatement($filterStatement); + $result = $this->__soapCall("getUsersByStatement", array($args)); + 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) { + $args = new PerformUserAction($userAction, $filterStatement); + $result = $this->__soapCall("performUserAction", array($args)); + return $result->rval; + } + /** + * Updates the specified {@link User} objects. + * + * @param users the users to update + * @return the updated users + */ + public function updateUsers($users) { + $args = new UpdateUsers($users); + $result = $this->__soapCall("updateUsers", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/UserTeamAssociationService.php b/src/Google/Api/Ads/Dfp/v201505/UserTeamAssociationService.php new file mode 100755 index 000000000..722df4f80 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/UserTeamAssociationService.php @@ -0,0 +1,2744 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserRecordTeamAssociation"; + + /** + * @access public + * @var integer + */ + public $teamId; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $overriddenTeamAccessType; + + /** + * @access public + * @var tnsTeamAccessType + */ + public $defaultTeamAccessType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null) { + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + } + + } +} + +if (!class_exists("UserTeamAssociationAction", false)) { + /** + * Represents the actions that can be performed on {@link UserTeamAssociation} + * objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserTeamAssociationAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class UserTeamAssociation extends UserRecordTeamAssociation { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UserTeamAssociation"; + + /** + * @access public + * @var integer + */ + public $userId; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userId = null, $teamId = null, $overriddenTeamAccessType = null, $defaultTeamAccessType = null) { + parent::__construct(); + $this->userId = $userId; + $this->teamId = $teamId; + $this->overriddenTeamAccessType = $overriddenTeamAccessType; + $this->defaultTeamAccessType = $defaultTeamAccessType; + } + + } +} + +if (!class_exists("UserTeamAssociationPage", false)) { + /** + * Captures a page of {@link UserTeamAssociation} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserTeamAssociationPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ApiVersionErrorReason", false)) { + /** + * Indicates that the operation is not allowed in the version the request + * was made in. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("TeamAccessType", false)) { + /** + * Represents the types of team access supported for orders. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TeamAccessType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TeamAccessType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class CreateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userTeamAssociations = null) { + $this->userTeamAssociations = $userTeamAssociations; + } + + } +} + +if (!class_exists("CreateUserTeamAssociationsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CreateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class GetUserTeamAssociationsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetUserTeamAssociationsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetUserTeamAssociationsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserTeamAssociationPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformUserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userTeamAssociationAction = null, $statement = null) { + $this->userTeamAssociationAction = $userTeamAssociationAction; + $this->statement = $statement; + } + + } +} + +if (!class_exists("PerformUserTeamAssociationActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformUserTeamAssociationActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class UpdateUserTeamAssociations { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $userTeamAssociations; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userTeamAssociations = null) { + $this->userTeamAssociations = $userTeamAssociations; + } + + } +} + +if (!class_exists("UpdateUserTeamAssociationsResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UpdateUserTeamAssociationsResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UserTeamAssociation[] + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DeleteUserTeamAssociations", false)) { + /** + * Action to delete the association between a {@link User} and a {@link Team}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DeleteUserTeamAssociations extends UserTeamAssociationAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DeleteUserTeamAssociations"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("UserTeamAssociationService", false)) { + /** + * UserTeamAssociationService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class UserTeamAssociationService extends DfpSoapClient { + + const SERVICE_NAME = "UserTeamAssociationService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/UserTeamAssociationService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/UserTeamAssociationService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "DeleteUserTeamAssociations" => "DeleteUserTeamAssociations", + "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", + "UserTeamAssociationAction" => "UserTeamAssociationAction", + "UserTeamAssociation" => "UserTeamAssociation", + "UserTeamAssociationPage" => "UserTeamAssociationPage", + "Value" => "Value", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "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", + "createUserTeamAssociations" => "CreateUserTeamAssociations", + "createUserTeamAssociationsResponse" => "CreateUserTeamAssociationsResponse", + "getUserTeamAssociationsByStatement" => "GetUserTeamAssociationsByStatement", + "getUserTeamAssociationsByStatementResponse" => "GetUserTeamAssociationsByStatementResponse", + "performUserTeamAssociationAction" => "PerformUserTeamAssociationAction", + "performUserTeamAssociationActionResponse" => "PerformUserTeamAssociationActionResponse", + "updateUserTeamAssociations" => "UpdateUserTeamAssociations", + "updateUserTeamAssociationsResponse" => "UpdateUserTeamAssociationsResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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) { + $args = new CreateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("createUserTeamAssociations", array($args)); + 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) { + $args = new GetUserTeamAssociationsByStatement($filterStatement); + $result = $this->__soapCall("getUserTeamAssociationsByStatement", array($args)); + 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) { + $args = new PerformUserTeamAssociationAction($userTeamAssociationAction, $statement); + $result = $this->__soapCall("performUserTeamAssociationAction", array($args)); + 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) { + $args = new UpdateUserTeamAssociations($userTeamAssociations); + $result = $this->__soapCall("updateUserTeamAssociations", array($args)); + return $result->rval; + } + } +} + diff --git a/src/Google/Api/Ads/Dfp/v201505/WorkflowRequestService.php b/src/Google/Api/Ads/Dfp/v201505/WorkflowRequestService.php new file mode 100755 index 000000000..f522eecc4 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/v201505/WorkflowRequestService.php @@ -0,0 +1,3191 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

    + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiError"; + + /** + * @access public + * @var string + */ + public $fieldPath; + + /** + * @access public + * @var string + */ + public $trigger; + + /** + * @access public + * @var string + */ + public $errorString; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApiVersionError", false)) { + /** + * Errors related to the usage of API versions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiVersionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError"; + + /** + * @access public + * @var tnsApiVersionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApplicationException"; + + /** + * @access public + * @var string + */ + public $message; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null) { + $this->message = $message; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * An error for an exception that occurred when authenticating. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("WorkflowRequest", false)) { + /** + * A {@code WorkflowRequest} represents a workflow action unit that requires external or manual + * interference. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 tnsWorkflowRequestType + */ + public $type; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->type = $type; + } + + } +} + +if (!class_exists("CollectionSizeError", false)) { + /** + * Error for the size of the collection being too large + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError"; + + /** + * @access public + * @var tnsCollectionSizeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("CommonError", false)) { + /** + * A place for common errors that can be used across services. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError"; + + /** + * @access public + * @var tnsCommonErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Date { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DfpDateTime", false)) { + /** + * Represents a date combined with the time of day. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DfpDateTime { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTime"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class FeatureError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError"; + + /** + * @access public + * @var tnsFeatureErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ForecastError", false)) { + /** + * Errors that can result from a forecast request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError"; + + /** + * @access public + * @var tnsForecastErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that 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 v201505 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("LineItemOperationError", false)) { + /** + * Lists all errors for executing operations on line items + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError"; + + /** + * @access public + * @var tnsLineItemOperationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("NotNullError", false)) { + /** + * Caused by supplying a null value for an attribute that cannot be null. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError"; + + /** + * @access public + * @var tnsNotNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PermissionError", false)) { + /** + * Errors related to incorrect permission. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError"; + + /** + * @access public + * @var tnsPermissionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ProposalActionError", false)) { + /** + * Lists all errors associated with performing actions on {@link Proposal} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalActionError"; + + /** + * @access public + * @var tnsProposalActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextError", false)) { + /** + * An error that occurs while executing a PQL query contained in + * a {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageContextErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxError", false)) { + /** + * An error that occurs while parsing a PQL query contained in a + * {@link Statement} object. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError"; + + /** + * @access public + * @var tnsPublisherQueryLanguageSyntaxErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class QuotaError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError"; + + /** + * @access public + * @var tnsQuotaErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("ServerError", false)) { + /** + * Errors related to the server. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError"; + + /** + * @access public + * @var tnsServerErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Represents the SOAP request header used by API requests. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SoapRequestHeader"; + + /** + * @access public + * @var string + */ + public $networkCode; + + /** + * @access public + * @var string + */ + public $applicationName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($networkCode = null, $applicationName = null) { + $this->networkCode = $networkCode; + $this->applicationName = $applicationName; + } + + } +} + +if (!class_exists("SoapResponseHeader", false)) { + /** + * Represents the SOAP request header used by API responses. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $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 v201505 + */ + class Statement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class StatementError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError"; + + /** + * @access public + * @var tnsStatementErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +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 v201505 + */ + class String_ValueMapEntry { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class UpdateResult { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "UpdateResult"; + + /** + * @access public + * @var integer + */ + public $numChanges; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($numChanges = null) { + $this->numChanges = $numChanges; + } + + } +} + +if (!class_exists("Value", false)) { + /** + * {@code Value} represents a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "Value"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowActionError", false)) { + /** + * Lists all errors associated with performing actions within {@link WorkflowAction}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowActionError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowActionError"; + + /** + * @access public + * @var tnsWorkflowActionErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("WorkflowApprovalRequest", false)) { + /** + * A {@code WorkflowApprovalRequest} represents a workflow action unit that requires user approval. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowApprovalRequest extends WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowApprovalRequest"; + + /** + * @access public + * @var tnsWorkflowApprovalRequestStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->type = $type; + } + + } +} + +if (!class_exists("WorkflowExternalConditionRequest", false)) { + /** + * A {@code WorkflowExternalConditionRequest} represents a workflow condition that requires external + * system to determine the result. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowExternalConditionRequest extends WorkflowRequest { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowExternalConditionRequest"; + + /** + * @access public + * @var tnsWorkflowExternalConditionStatus + */ + public $status; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($status = null, $id = null, $workflowRuleName = null, $entityId = null, $entityType = null, $type = null) { + parent::__construct(); + $this->status = $status; + $this->id = $id; + $this->workflowRuleName = $workflowRuleName; + $this->entityId = $entityId; + $this->entityType = $entityType; + $this->type = $type; + } + + } +} + +if (!class_exists("WorkflowRequestAction", false)) { + /** + * Represents the actions that can be performed on {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowRequestAction"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowRequestError", false)) { + /** + * Lists errors associated with {@link WorkflowRequest workflow requests}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestError extends ApiError { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowRequestError"; + + /** + * @access public + * @var tnsWorkflowRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + } + + } +} + +if (!class_exists("WorkflowRequestPage", false)) { + /** + * Captures a page of {@link WorkflowRequest} objects. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestPage { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($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 v201505 + */ + class ApiVersionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiVersionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowApprovalRequestStatus", false)) { + /** + * The status of the workflow approval request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowApprovalRequestStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowApprovalRequestStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 v201505 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CollectionSizeErrorReason", false)) { + /** + * The value returned if the actual value is not exposed by the requested API version. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CollectionSizeErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CollectionSizeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CommonErrorReason", false)) { + /** + * Describes reasons for common errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class CommonErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "CommonError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("FeatureErrorReason", false)) { + /** + * A feature is being used that is not enabled on the current network. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class FeatureErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "FeatureError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ForecastErrorReason", false)) { + /** + * Reason why a forecast could not be retrieved. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ForecastErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ForecastError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("LineItemOperationErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class LineItemOperationErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "LineItemOperationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotNullErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NotNullErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NotNullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PermissionErrorReason", false)) { + /** + * Describes reasons for permission errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PermissionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PermissionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProposalActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ProposalActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ProposalActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageContextErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageContextErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageContextError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PublisherQueryLanguageSyntaxErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PublisherQueryLanguageSyntaxErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "PublisherQueryLanguageSyntaxError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 for + * Small Business networks, or 8 per second for Premium networks. 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 v201505 + */ + class QuotaErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "QuotaError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ServerErrorReason", false)) { + /** + * Describes reasons for server errors + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ServerErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ServerError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StatementErrorReason", false)) { + /** + * A bind variable has not been bound to a value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class StatementErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "StatementError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowActionErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowActionErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowActionError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowEntityType", false)) { + /** + * The entity types that workflows can be applied to. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowEntityType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowEntityType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowRequestErrorReason", false)) { + /** + * The reasons for the target error. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestErrorReason { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowRequestError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowRequestType", false)) { + /** + * Types of a workflow request. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestType { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowRequestType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WorkflowExternalConditionStatus", false)) { + /** + * The status of workflow external conditions during workflow execution. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowExternalConditionStatus { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "WorkflowExternalConditionStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("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 entityType}{@link WorkflowRequest#entityType}
    {@code entityId}{@link WorkflowRequest#entityId}
    {@code approvalStatus}{@link WorkflowApprovalRequest#status}
    {@code conditionStatus}{@link WorkflowExternalConditionRequest#status}
    {@code type}{@link WorkflowRequest#type}
    + *

    Starting in V201405 a {@code type} filter must be used

    + * @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 v201505 + */ + class GetWorkflowRequestsByStatement { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Statement + */ + public $filterStatement; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($filterStatement = null) { + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("GetWorkflowRequestsByStatementResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class GetWorkflowRequestsByStatementResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var WorkflowRequestPage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("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 v201505 + */ + class PerformWorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($action = null, $filterStatement = null) { + $this->action = $action; + $this->filterStatement = $filterStatement; + } + + } +} + +if (!class_exists("PerformWorkflowRequestActionResponse", false)) { + /** + * + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class PerformWorkflowRequestActionResponse { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = ""; + + /** + * @access public + * @var UpdateResult + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ObjectValue", false)) { + /** + * Contains an object value. + *

    + * This object is experimental! + * ObjectValue is an experimental, innovative, and rapidly + * changing new feature for DFP. Unfortunately, being on the bleeding edge means that we may make + * backwards-incompatible changes to + * ObjectValue. We will inform the community when this feature + * is no longer experimental. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ObjectValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ObjectValue"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + } + + } +} + +if (!class_exists("ApproveWorkflowApprovalRequests", false)) { + /** + * The action used to approve {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class ApproveWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "ApproveWorkflowApprovalRequests"; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($comment = null) { + parent::__construct(); + $this->comment = $comment; + } + + } +} + +if (!class_exists("BooleanValue", false)) { + /** + * Contains a boolean value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class BooleanValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "BooleanValue"; + + /** + * @access public + * @var boolean + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateTimeValue", false)) { + /** + * Contains a date-time value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateTimeValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateTimeValue"; + + /** + * @access public + * @var DateTime + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("DateValue", false)) { + /** + * Contains a date value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class DateValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "DateValue"; + + /** + * @access public + * @var Date + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("SkipWorkflowExternalConditionRequests", false)) { + /** + * The action to skip {@link WorkflowExternalConditionRequest workflow external condition requests}. + * Doing so means that the rule did not trigger. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SkipWorkflowExternalConditionRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SkipWorkflowExternalConditionRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("NumberValue", false)) { + /** + * Contains a numeric value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class NumberValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "NumberValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("TriggerWorkflowExternalConditionRequests", false)) { + /** + * The action to trigger {@link WorkflowExternalConditionRequest workflow external condition + * requests}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TriggerWorkflowExternalConditionRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TriggerWorkflowExternalConditionRequests"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + parent::__construct(); + } + + } +} + +if (!class_exists("RejectWorkflowApprovalRequests", false)) { + /** + * The action used to reject {@link WorkflowApprovalRequest workflow approval requests}. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class RejectWorkflowApprovalRequests extends WorkflowRequestAction { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "RejectWorkflowApprovalRequests"; + + /** + * @access public + * @var string + */ + public $comment; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($comment = null) { + parent::__construct(); + $this->comment = $comment; + } + + } +} + +if (!class_exists("SetValue", false)) { + /** + * Contains a set of {@link Value Values}. May not contain duplicates. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class SetValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "SetValue"; + + /** + * @access public + * @var Value[] + */ + public $values; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($values = null) { + parent::__construct(); + $this->values = $values; + } + + } +} + +if (!class_exists("TextValue", false)) { + /** + * Contains a string value. + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class TextValue extends Value { + + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const XSI_TYPE = "TextValue"; + + /** + * @access public + * @var string + */ + public $value; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($value = null) { + parent::__construct(); + $this->value = $value; + } + + } +} + +if (!class_exists("WorkflowRequestService", false)) { + /** + * WorkflowRequestService + * @package GoogleApiAdsDfp + * @subpackage v201505 + */ + class WorkflowRequestService extends DfpSoapClient { + + const SERVICE_NAME = "WorkflowRequestService"; + const WSDL_NAMESPACE = "https://www.google.com/apis/ads/publisher/v201505"; + const ENDPOINT = "https://ads.google.com/apis/ads/publisher/v201505/WorkflowRequestService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://ads.google.com/apis/ads/publisher/v201505/WorkflowRequestService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ObjectValue" => "ObjectValue", + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApiVersionError" => "ApiVersionError", + "ApplicationException" => "ApplicationException", + "ApproveWorkflowApprovalRequests" => "ApproveWorkflowApprovalRequests", + "AuthenticationError" => "AuthenticationError", + "WorkflowRequest" => "WorkflowRequest", + "BooleanValue" => "BooleanValue", + "CollectionSizeError" => "CollectionSizeError", + "CommonError" => "CommonError", + "Date" => "Date", + "DateTime" => "DfpDateTime", + "DateTimeValue" => "DateTimeValue", + "DateValue" => "DateValue", + "SkipWorkflowExternalConditionRequests" => "SkipWorkflowExternalConditionRequests", + "FeatureError" => "FeatureError", + "ForecastError" => "ForecastError", + "InternalApiError" => "InternalApiError", + "LineItemOperationError" => "LineItemOperationError", + "NotNullError" => "NotNullError", + "NumberValue" => "NumberValue", + "TriggerWorkflowExternalConditionRequests" => "TriggerWorkflowExternalConditionRequests", + "PermissionError" => "PermissionError", + "ProposalActionError" => "ProposalActionError", + "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", + "Value" => "Value", + "WorkflowActionError" => "WorkflowActionError", + "WorkflowApprovalRequest" => "WorkflowApprovalRequest", + "WorkflowExternalConditionRequest" => "WorkflowExternalConditionRequest", + "WorkflowRequestAction" => "WorkflowRequestAction", + "WorkflowRequestError" => "WorkflowRequestError", + "WorkflowRequestPage" => "WorkflowRequestPage", + "ApiVersionError.Reason" => "ApiVersionErrorReason", + "WorkflowApprovalRequestStatus" => "WorkflowApprovalRequestStatus", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "CollectionSizeError.Reason" => "CollectionSizeErrorReason", + "CommonError.Reason" => "CommonErrorReason", + "FeatureError.Reason" => "FeatureErrorReason", + "ForecastError.Reason" => "ForecastErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "LineItemOperationError.Reason" => "LineItemOperationErrorReason", + "NotNullError.Reason" => "NotNullErrorReason", + "PermissionError.Reason" => "PermissionErrorReason", + "ProposalActionError.Reason" => "ProposalActionErrorReason", + "PublisherQueryLanguageContextError.Reason" => "PublisherQueryLanguageContextErrorReason", + "PublisherQueryLanguageSyntaxError.Reason" => "PublisherQueryLanguageSyntaxErrorReason", + "QuotaError.Reason" => "QuotaErrorReason", + "ServerError.Reason" => "ServerErrorReason", + "StatementError.Reason" => "StatementErrorReason", + "WorkflowActionError.Reason" => "WorkflowActionErrorReason", + "WorkflowEntityType" => "WorkflowEntityType", + "WorkflowRequestError.Reason" => "WorkflowRequestErrorReason", + "WorkflowRequestType" => "WorkflowRequestType", + "WorkflowExternalConditionStatus" => "WorkflowExternalConditionStatus", + "getWorkflowRequestsByStatement" => "GetWorkflowRequestsByStatement", + "getWorkflowRequestsByStatementResponse" => "GetWorkflowRequestsByStatementResponse", + "performWorkflowRequestAction" => "PerformWorkflowRequestAction", + "performWorkflowRequestActionResponse" => "PerformWorkflowRequestActionResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * 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 entityType}{@link WorkflowRequest#entityType}
    {@code entityId}{@link WorkflowRequest#entityId}
    {@code approvalStatus}{@link WorkflowApprovalRequest#status}
    {@code conditionStatus}{@link WorkflowExternalConditionRequest#status}
    {@code type}{@link WorkflowRequest#type}
    + *

    Starting in V201405 a {@code type} filter must be used

    + * @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) { + $args = new GetWorkflowRequestsByStatement($filterStatement); + $result = $this->__soapCall("getWorkflowRequestsByStatement", array($args)); + 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) { + $args = new PerformWorkflowRequestAction($action, $filterStatement); + $result = $this->__soapCall("performWorkflowRequestAction", array($args)); + return $result->rval; + } + } +} + diff --git a/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php index 0b258dddf..48dabf9ee 100755 --- a/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php +++ b/tests/Google/Api/Ads/AdWords/Lib/AdWordsUserTest.php @@ -53,8 +53,8 @@ public function $COMMON_NAME = 'Common-PHP'; $VERSION_REGEX = '\d{1,2}\.\d{1,2}\.\d{1,2}'; - $user = new AdWordsUser($this->authIniFilePath, 'devToken', null, - $USER_AGENT, null, null, $this->mockOAuth2Credential); + $user = new AdWordsUser($this->authIniFilePath, 'devToken', $USER_AGENT, + null, null, $this->mockOAuth2Credential); // Example: "AdWordsApiPhpClient-test (AwApi-PHP/4.1.1, Common-PHP/5.0.0, // PHP/5.4.8)" @@ -78,7 +78,7 @@ public function public function testValidateUserWithNullUserAgentFailsWithValidationException() { $user = new AdWordsUser($this->authIniFilePath, 'devToken', null, null, - null, null, $this->mockOAuth2Credential); + null, $this->mockOAuth2Credential); $user->validateUser(); } @@ -88,8 +88,8 @@ public function */ public function testValidateUserWithEmptyUserAgentFailsWithValidationException() { - $user = new AdWordsUser($this->authIniFilePath, 'devToken', null, '', null, - null, $this->mockOAuth2Credential); + $user = new AdWordsUser($this->authIniFilePath, 'devToken', '', null, null, + $this->mockOAuth2Credential); $user->validateUser(); } @@ -100,8 +100,7 @@ public function public function testValidateUserWithDefaultUserAgentFailsWithValidationException() { $user = new AdWordsUser($this->authIniFilePath, 'devToken', - null, 'INSERT_COMPANY_NAME_HERE', null, null, - $this->mockOAuth2Credential); + 'INSERT_COMPANY_NAME_HERE', null, null, $this->mockOAuth2Credential); $user->validateUser(); } @@ -118,7 +117,7 @@ public function testConstructWithClientIdFailsWithValidationException() { fwrite($authIniFile, 'clientId = "12345678"'); fclose($authIniFile); - new AdWordsUser($this->authIniFilePath, null, null, null, null); + new AdWordsUser($this->authIniFilePath); } } diff --git a/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php index 9e65dc8b0..400501d7d 100755 --- a/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php +++ b/tests/Google/Api/Ads/Common/Lib/AdsUserTest.php @@ -351,8 +351,8 @@ public function testLoadSettings_Auth_Defaults() { * @covers AdsUser::LoadSettings */ public function testLoadSettings_Ssl() { - $verifyPeer = 1; - $verifyHost = 1; + $verifyPeer = 0; + $verifyHost = 0; $caPath = '/etc/ssl/certs'; $caFile = '/etc/ssl/cafile'; $settings = array( diff --git a/tests/Google/Api/Ads/Dfp/Lib/DfpUserTest.php b/tests/Google/Api/Ads/Dfp/Lib/DfpUserTest.php new file mode 100755 index 000000000..083db0a72 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Lib/DfpUserTest.php @@ -0,0 +1,106 @@ +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 + testGetClientLibraryAppNameReturnsCorrectlyFormattedAppName() { + $APPLICATION_NAME = 'DfpApiPhpClient-test'; + $LIB_NAME = 'DfpApi-PHP'; + $COMMON_NAME = 'Common-PHP'; + $VERSION_REGEX = '\d{1,2}\.\d{1,2}\.\d{1,2}'; + + $user = new DfpUser($this->authIniFilePath, $APPLICATION_NAME, + 'networkCode', null, $this->mockOAuth2Credential); + + // Example: "DfpApiPhpClient-test (DfpApi-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->GetApplicationName()), + preg_quote($LIB_NAME), + $VERSION_REGEX, + preg_quote($COMMON_NAME), + $VERSION_REGEX, + preg_quote(PHP_VERSION) + ); + + $this->assertRegExp($search, $user->GetClientLibraryUserAgent()); + } + + /** + * @expectedException ValidationException + * @covers DfpUser::ValidateUser + */ + public function + testValidateUserWithNullUserAgentFailsWithValidationException() { + $user = new DfpUser($this->authIniFilePath, null, 'networkCode', + null, $this->mockOAuth2Credential); + $user->ValidateUser(); + } + + /** + * @expectedException ValidationException + * @covers DfpUser::ValidateUser + */ + public function + testValidateUserWithEmptyUserAgentFailsWithValidationException() { + $user = new DfpUser($this->authIniFilePath, '', 'networkCode', null, + $this->mockOAuth2Credential); + $user->ValidateUser(); + } + + /** + * @expectedException ValidationException + * @covers DfpUser::ValidateUser + */ + public function + testValidateUserWithDefaultUserAgentFailsWithValidationException() { + $user = new DfpUser($this->authIniFilePath, 'INSERT_APPLICATION_NAME_HERE', + 'networkCode', null, $this->mockOAuth2Credential); + $user->ValidateUser(); + } +} + diff --git a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php deleted file mode 100755 index fa0f2105d..000000000 --- a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php +++ /dev/null @@ -1,217 +0,0 @@ -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 deleted file mode 100755 index 45cb314da..000000000 --- a/tests/Google/Api/Ads/Dfp/Util/PqlTest.php +++ /dev/null @@ -1,240 +0,0 @@ -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'); - $this->date1 = new Date(2012, 12, 2); - $this->dateTime1 = - new DfpDateTime($this->date1, 12, 45, 0, PqlTest::TIME_ZONE_ID1); - $this->dateValue1 = new DateValue($this->date1); - $this->dateTimeValue1 = new DateTimeValue($this->dateTime1); - - $values = [new NumberValue('23'), new NumberValue('42'), - new NumberValue('5'), new NumberValue('10'), new NumberValue('1')]; - $this->setValue1 = new SetValue($values); - - $adUnitTargeting = new AdUnitTargeting(); - $adUnitTargeting->adUnitId = '100'; - $inventoryTargeting = new InventoryTargeting(); - $inventoryTargeting->targetedAdUnits = array($adUnitTargeting); - $this->targeting1 = new Targeting(); - $this->targeting1->inventoryTargeting = $inventoryTargeting; - } - - /** - * @covers Pql::CreateValue - */ - public function testCreateValue() { - $this->assertEquals('hello', - Pql::CreateValue(new TextValue('hello'))->value); - $this->assertEquals('value1', Pql::CreateValue('value1')->value); - $this->assertEquals(false, Pql::CreateValue(false)->value); - $this->assertEquals('1', Pql::CreateValue(1)->value); - $this->assertEquals('1.02', Pql::CreateValue(1.02)->value); - $this->assertEquals('2012-12-02T12:45:00+08:00', - DateTimeUtils::ToStringWithTimeZone( - Pql::CreateValue($this->dateTime1)->value)); - $this->assertEquals('2012-12-02', - DateTimeUtils::ToString( - Pql::CreateValue($this->dateTime1->date)->value)); - - $values = Pql::CreateValue([23, 42, 5, 10, 1])->values; - $this->assertEquals(5, count($values)); - $this->assertEquals(23, $values[0]->value); - $this->assertEquals(42, $values[1]->value); - $this->assertEquals(5, $values[2]->value); - $this->assertEquals(10, $values[3]->value); - $this->assertEquals(1, $values[4]->value); - - $this->assertEquals('100', Pql::CreateValue($this->targeting1) - ->value->inventoryTargeting->targetedAdUnits[0]->adUnitId); - } - - /** - * @covers Pql::CreateValue - * @expectedException InvalidArgumentException - */ - public function testCreateValueWithInvalidTypeThrowsException() { - Pql::CreateValue(new MyObject()); - } - - /** - * @covers Pql::CreateValue - */ - public function testCreateValueWithNullReturnsTextValue() { - $this->assertEquals(null, Pql::CreateValue(null)->value); - } - - /** - * @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)); - $this->assertEquals('23,42,5,10,1', Pql::ToString($this->setValue1)); - } - - /** - * @covers Pql::ToString - * @expectedException InvalidArgumentException - */ - public function testToStringWithUnsupportedValueTypeThrowsException() { - Pql::ToString(new MyValue()); - } - - /** - * @covers Pql::ToString - * @expectedException InvalidArgumentException - */ - public function testToStringWithTargetingValueTypeThrowsException() { - Pql::ToString(new TargetingValue()); - } - - /** - * @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 {} -class MyObject {} diff --git a/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php deleted file mode 100755 index e98ba856c..000000000 --- a/tests/Google/Api/Ads/Dfp/Util/ReportUtilsTest.php +++ /dev/null @@ -1,62 +0,0 @@ -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)); - } -} - diff --git a/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php b/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php deleted file mode 100755 index bc21b65ee..000000000 --- a/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php +++ /dev/null @@ -1,208 +0,0 @@ -Select('Id') - ->From('table') - ->Where('a = b AND b = c') - ->OrderBy('a ASC, b DESC') - ->Limit(200) - ->Offset(0) - ->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementForPqlTableWithKeywords() { - $expectedQuery = 'SELECT Id FROM table WHERE a = b AND b = c ORDER BY a ' - . 'ASC, b DESC LIMIT 200 OFFSET 0'; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->Select('Id') - ->From('FrOM table') - ->Where('WHERE a = b AND b = c') - ->OrderBy('order BY a ASC, b DESC') - ->Limit(200) - ->Offset(0) - ->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementNotPqlTable() { - $expectedQuery = 'WHERE a = b AND b = c ORDER BY a ASC, b DESC LIMIT 200 ' - . 'OFFSET 0'; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->Where('a = b AND b = c') - ->OrderBy('a ASC, b DESC') - ->Limit(200) - ->Offset(0) - ->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementNoOffset() { - $expectedQuery = 'WHERE a = b AND b = c ORDER BY a ASC, b DESC LIMIT 200'; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->Where('a = b AND b = c') - ->OrderBy('a ASC, b DESC') - ->Limit(200) - ->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementJustLimit() { - $expectedQuery = 'LIMIT 500'; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->Limit(500)->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementLimitAndOffset() { - $expectedQuery = 'LIMIT 500 OFFSET 0'; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->Limit(500) - ->Offset(0) - ->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - * @covers StatementBuilder::RemoveLimitAndOffset - */ - public function testToStatementRemoveLimitAndOffset() { - $expectedQueryBefore = 'WHERE a = b ORDER BY a LIMIT 500 OFFSET 0'; - $expectedQueryAfter = 'WHERE a = b ORDER BY a'; - $statementBuilder = new StatementBuilder(); - $statementBuilder->Limit(500) - ->Offset(0) - ->Where('a = b') - ->OrderBy('a'); - $this->assertEquals($expectedQueryBefore, - $statementBuilder->ToStatement()->query); - $statementBuilder->RemoveLimitAndOffset(); - $this->assertEquals($expectedQueryAfter, - $statementBuilder->ToStatement()->query); - } - - /** - * @covers StatementBuilder::ToStatement - * @covers StatementBuilder::IncreaseOffsetBy - */ - public function testToStatementIncreaseOffsetNoInitialOffset() { - $expectedQueryBefore = 'WHERE a = b ORDER BY a LIMIT 500'; - $expectedQueryAfter = 'WHERE a = b ORDER BY a LIMIT 500 OFFSET 120'; - $statementBuilder = new StatementBuilder(); - $statementBuilder->Limit(500) - ->Where('a = b') - ->OrderBy('a'); - $this->assertEquals($expectedQueryBefore, - $statementBuilder->ToStatement()->query); - $statementBuilder->IncreaseOffsetBy(120); - $this->assertEquals($expectedQueryAfter, - $statementBuilder->ToStatement()->query); - } - - /** - * @covers StatementBuilder::ToStatement - * @covers StatementBuilder::IncreaseOffsetBy - */ - public function testToStatementIncreaseOffsetWithInitialOffset() { - $expectedQueryBefore = 'WHERE a = b ORDER BY a LIMIT 500 OFFSET 10'; - $expectedQueryAfter = 'WHERE a = b ORDER BY a LIMIT 500 OFFSET 40'; - $statementBuilder = new StatementBuilder(); - $statementBuilder->Limit(500) - ->Offset(10) - ->Where('a = b') - ->OrderBy('a'); - $this->assertEquals($expectedQueryBefore, - $statementBuilder->ToStatement()->query); - $statementBuilder->IncreaseOffsetBy(30); - $this->assertEquals($expectedQueryAfter, - $statementBuilder->ToStatement()->query); - } - - /** - * @covers StatementBuilder::ToStatement - */ - public function testToStatementEmpty() { - $expectedQuery = ''; - $statementBuilder = new StatementBuilder(); - $query = $statementBuilder->ToStatement()->query; - $this->assertEquals($expectedQuery, $query); - } - - /** - * @covers StatementBuilder::ToStatement - * @expectedException ValidationException - */ - public function testToStatementOffsetWithoutLimit() { - $statementBuilder = new StatementBuilder(); - $statementBuilder->Offset(500)->ToStatement(); - } - - /** - * @covers StatementBuilder::WithBindVariableValue - */ - public function testWithBindingVariable() { - $key = 'key'; - $value = 'value'; - $statementBuilder = new StatementBuilder(); - $statementBuilder->WithBindVariableValue($key, $value); - $bindVariableMap = $statementBuilder->GetBindVariableMap(); - $this->assertEquals($value, $bindVariableMap[$key]->value); - } -} -