📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Analytics
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Account.php
▶ Open 📄 View Source
🐘 AccountChildLink.php
▶ Open 📄 View Source
🐘 AccountPermissions.php
▶ Open 📄 View Source
🐘 AccountRef.php
▶ Open 📄 View Source
🐘 AccountSummaries.php
▶ Open 📄 View Source
🐘 AccountSummary.php
▶ Open 📄 View Source
🐘 AccountTicket.php
▶ Open 📄 View Source
🐘 AccountTreeRequest.php
▶ Open 📄 View Source
🐘 AccountTreeResponse.php
▶ Open 📄 View Source
🐘 Accounts.php
▶ Open 📄 View Source
🐘 AdWordsAccount.php
▶ Open 📄 View Source
🐘 AnalyticsDataimportDeleteUploadDataRequest.php
▶ Open 📄 View Source
🐘 Column.php
▶ Open 📄 View Source
🐘 Columns.php
▶ Open 📄 View Source
🐘 CustomDataSource.php
▶ Open 📄 View Source
🐘 CustomDataSourceChildLink.php
▶ Open 📄 View Source
🐘 CustomDataSourceParentLink.php
▶ Open 📄 View Source
🐘 CustomDataSources.php
▶ Open 📄 View Source
🐘 CustomDimension.php
▶ Open 📄 View Source
🐘 CustomDimensionParentLink.php
▶ Open 📄 View Source
🐘 CustomDimensions.php
▶ Open 📄 View Source
🐘 CustomMetric.php
▶ Open 📄 View Source
🐘 CustomMetricParentLink.php
▶ Open 📄 View Source
🐘 CustomMetrics.php
▶ Open 📄 View Source
🐘 EntityAdWordsLink.php
▶ Open 📄 View Source
🐘 EntityAdWordsLinkEntity.php
▶ Open 📄 View Source
🐘 EntityAdWordsLinks.php
▶ Open 📄 View Source
🐘 EntityUserLink.php
▶ Open 📄 View Source
🐘 EntityUserLinkEntity.php
▶ Open 📄 View Source
🐘 EntityUserLinkPermissions.php
▶ Open 📄 View Source
🐘 EntityUserLinks.php
▶ Open 📄 View Source
🐘 Experiment.php
▶ Open 📄 View Source
🐘 ExperimentParentLink.php
▶ Open 📄 View Source
🐘 ExperimentVariations.php
▶ Open 📄 View Source
🐘 Experiments.php
▶ Open 📄 View Source
🐘 Filter.php
▶ Open 📄 View Source
🐘 FilterAdvancedDetails.php
▶ Open 📄 View Source
🐘 FilterExpression.php
▶ Open 📄 View Source
🐘 FilterLowercaseDetails.php
▶ Open 📄 View Source
🐘 FilterParentLink.php
▶ Open 📄 View Source
🐘 FilterRef.php
▶ Open 📄 View Source
🐘 FilterSearchAndReplaceDetails.php
▶ Open 📄 View Source
🐘 FilterUppercaseDetails.php
▶ Open 📄 View Source
🐘 Filters.php
▶ Open 📄 View Source
🐘 GaData.php
▶ Open 📄 View Source
🐘 GaDataColumnHeaders.php
▶ Open 📄 View Source
🐘 GaDataDataTable.php
▶ Open 📄 View Source
🐘 GaDataDataTableCols.php
▶ Open 📄 View Source
🐘 GaDataDataTableRows.php
▶ Open 📄 View Source
🐘 GaDataDataTableRowsC.php
▶ Open 📄 View Source
🐘 GaDataProfileInfo.php
▶ Open 📄 View Source
🐘 GaDataQuery.php
▶ Open 📄 View Source
🐘 Goal.php
▶ Open 📄 View Source
🐘 GoalEventDetails.php
▶ Open 📄 View Source
🐘 GoalEventDetailsEventConditions.php
▶ Open 📄 View Source
🐘 GoalParentLink.php
▶ Open 📄 View Source
🐘 GoalUrlDestinationDetails.php
▶ Open 📄 View Source
🐘 GoalUrlDestinationDetailsSteps.php
▶ Open 📄 View Source
🐘 GoalVisitNumPagesDetails.php
▶ Open 📄 View Source
🐘 GoalVisitTimeOnSiteDetails.php
▶ Open 📄 View Source
🐘 Goals.php
▶ Open 📄 View Source
🐘 HashClientIdRequest.php
▶ Open 📄 View Source
🐘 HashClientIdResponse.php
▶ Open 📄 View Source
🐘 IncludeConditions.php
▶ Open 📄 View Source
🐘 LinkedForeignAccount.php
▶ Open 📄 View Source
🐘 McfData.php
▶ Open 📄 View Source
🐘 McfDataColumnHeaders.php
▶ Open 📄 View Source
🐘 McfDataProfileInfo.php
▶ Open 📄 View Source
🐘 McfDataQuery.php
▶ Open 📄 View Source
🐘 McfDataRows.php
▶ Open 📄 View Source
🐘 McfDataRowsConversionPathValue.php
▶ Open 📄 View Source
🐘 Profile.php
▶ Open 📄 View Source
🐘 ProfileChildLink.php
▶ Open 📄 View Source
🐘 ProfileFilterLink.php
▶ Open 📄 View Source
🐘 ProfileFilterLinks.php
▶ Open 📄 View Source
🐘 ProfileParentLink.php
▶ Open 📄 View Source
🐘 ProfilePermissions.php
▶ Open 📄 View Source
🐘 ProfileRef.php
▶ Open 📄 View Source
🐘 ProfileSummary.php
▶ Open 📄 View Source
🐘 Profiles.php
▶ Open 📄 View Source
🐘 RealtimeData.php
▶ Open 📄 View Source
🐘 RealtimeDataColumnHeaders.php
▶ Open 📄 View Source
🐘 RealtimeDataProfileInfo.php
▶ Open 📄 View Source
🐘 RealtimeDataQuery.php
▶ Open 📄 View Source
🐘 RemarketingAudience.php
▶ Open 📄 View Source
🐘 RemarketingAudienceAudienceDefinition.php
▶ Open 📄 View Source
🐘 RemarketingAudienceStateBasedAudienceDefinition.php
▶ Open 📄 View Source
🐘 RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php
▶ Open 📄 View Source
🐘 RemarketingAudiences.php
▶ Open 📄 View Source
🐘 Segment.php
▶ Open 📄 View Source
🐘 Segments.php
▶ Open 📄 View Source
🐘 UnsampledReport.php
▶ Open 📄 View Source
🐘 UnsampledReportCloudStorageDownloadDetails.php
▶ Open 📄 View Source
🐘 UnsampledReportDriveDownloadDetails.php
▶ Open 📄 View Source
🐘 UnsampledReports.php
▶ Open 📄 View Source
🐘 Upload.php
▶ Open 📄 View Source
🐘 Uploads.php
▶ Open 📄 View Source
🐘 UserDeletionRequest.php
▶ Open 📄 View Source
🐘 UserDeletionRequestId.php
▶ Open 📄 View Source
🐘 UserRef.php
▶ Open 📄 View Source
🐘 WebPropertyRef.php
▶ Open 📄 View Source
🐘 WebPropertySummary.php
▶ Open 📄 View Source
🐘 Webproperties.php
▶ Open 📄 View Source
🐘 Webproperty.php
▶ Open 📄 View Source
🐘 WebpropertyChildLink.php
▶ Open 📄 View Source
🐘 WebpropertyParentLink.php
▶ Open 📄 View Source
🐘 WebpropertyPermissions.php
▶ Open 📄 View Source

📄 Source: Goal.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Analytics;

class Goal extends \Google\Model
{
  /**
   * Account ID to which this goal belongs.
   *
   * @var string
   */
  public $accountId;
  /**
   * Determines whether this goal is active.
   *
   * @var bool
   */
  public $active;
  /**
   * Time this goal was created.
   *
   * @var string
   */
  public $created;
  protected $eventDetailsType = GoalEventDetails::class;
  protected $eventDetailsDataType = '';
  /**
   * Goal ID.
   *
   * @var string
   */
  public $id;
  /**
   * Internal ID for the web property to which this goal belongs.
   *
   * @var string
   */
  public $internalWebPropertyId;
  /**
   * Resource type for an Analytics goal.
   *
   * @var string
   */
  public $kind;
  /**
   * Goal name.
   *
   * @var string
   */
  public $name;
  protected $parentLinkType = GoalParentLink::class;
  protected $parentLinkDataType = '';
  /**
   * View (Profile) ID to which this goal belongs.
   *
   * @var string
   */
  public $profileId;
  /**
   * Link for this goal.
   *
   * @var string
   */
  public $selfLink;
  /**
   * Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
   * VISIT_NUM_PAGES, AND EVENT.
   *
   * @var string
   */
  public $type;
  /**
   * Time this goal was last modified.
   *
   * @var string
   */
  public $updated;
  protected $urlDestinationDetailsType = GoalUrlDestinationDetails::class;
  protected $urlDestinationDetailsDataType = '';
  /**
   * Goal value.
   *
   * @var float
   */
  public $value;
  protected $visitNumPagesDetailsType = GoalVisitNumPagesDetails::class;
  protected $visitNumPagesDetailsDataType = '';
  protected $visitTimeOnSiteDetailsType = GoalVisitTimeOnSiteDetails::class;
  protected $visitTimeOnSiteDetailsDataType = '';
  /**
   * Web property ID to which this goal belongs. The web property ID is of the
   * form UA-XXXXX-YY.
   *
   * @var string
   */
  public $webPropertyId;

  /**
   * Account ID to which this goal belongs.
   *
   * @param string $accountId
   */
  public function setAccountId($accountId)
  {
    $this->accountId = $accountId;
  }
  /**
   * @return string
   */
  public function getAccountId()
  {
    return $this->accountId;
  }
  /**
   * Determines whether this goal is active.
   *
   * @param bool $active
   */
  public function setActive($active)
  {
    $this->active = $active;
  }
  /**
   * @return bool
   */
  public function getActive()
  {
    return $this->active;
  }
  /**
   * Time this goal was created.
   *
   * @param string $created
   */
  public function setCreated($created)
  {
    $this->created = $created;
  }
  /**
   * @return string
   */
  public function getCreated()
  {
    return $this->created;
  }
  /**
   * Details for the goal of the type EVENT.
   *
   * @param GoalEventDetails $eventDetails
   */
  public function setEventDetails(GoalEventDetails $eventDetails)
  {
    $this->eventDetails = $eventDetails;
  }
  /**
   * @return GoalEventDetails
   */
  public function getEventDetails()
  {
    return $this->eventDetails;
  }
  /**
   * Goal ID.
   *
   * @param string $id
   */
  public function setId($id)
  {
    $this->id = $id;
  }
  /**
   * @return string
   */
  public function getId()
  {
    return $this->id;
  }
  /**
   * Internal ID for the web property to which this goal belongs.
   *
   * @param string $internalWebPropertyId
   */
  public function setInternalWebPropertyId($internalWebPropertyId)
  {
    $this->internalWebPropertyId = $internalWebPropertyId;
  }
  /**
   * @return string
   */
  public function getInternalWebPropertyId()
  {
    return $this->internalWebPropertyId;
  }
  /**
   * Resource type for an Analytics goal.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Goal name.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Parent link for a goal. Points to the view (profile) to which this goal
   * belongs.
   *
   * @param GoalParentLink $parentLink
   */
  public function setParentLink(GoalParentLink $parentLink)
  {
    $this->parentLink = $parentLink;
  }
  /**
   * @return GoalParentLink
   */
  public function getParentLink()
  {
    return $this->parentLink;
  }
  /**
   * View (Profile) ID to which this goal belongs.
   *
   * @param string $profileId
   */
  public function setProfileId($profileId)
  {
    $this->profileId = $profileId;
  }
  /**
   * @return string
   */
  public function getProfileId()
  {
    return $this->profileId;
  }
  /**
   * Link for this goal.
   *
   * @param string $selfLink
   */
  public function setSelfLink($selfLink)
  {
    $this->selfLink = $selfLink;
  }
  /**
   * @return string
   */
  public function getSelfLink()
  {
    return $this->selfLink;
  }
  /**
   * Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
   * VISIT_NUM_PAGES, AND EVENT.
   *
   * @param string $type
   */
  public function setType($type)
  {
    $this->type = $type;
  }
  /**
   * @return string
   */
  public function getType()
  {
    return $this->type;
  }
  /**
   * Time this goal was last modified.
   *
   * @param string $updated
   */
  public function setUpdated($updated)
  {
    $this->updated = $updated;
  }
  /**
   * @return string
   */
  public function getUpdated()
  {
    return $this->updated;
  }
  /**
   * Details for the goal of the type URL_DESTINATION.
   *
   * @param GoalUrlDestinationDetails $urlDestinationDetails
   */
  public function setUrlDestinationDetails(GoalUrlDestinationDetails $urlDestinationDetails)
  {
    $this->urlDestinationDetails = $urlDestinationDetails;
  }
  /**
   * @return GoalUrlDestinationDetails
   */
  public function getUrlDestinationDetails()
  {
    return $this->urlDestinationDetails;
  }
  /**
   * Goal value.
   *
   * @param float $value
   */
  public function setValue($value)
  {
    $this->value = $value;
  }
  /**
   * @return float
   */
  public function getValue()
  {
    return $this->value;
  }
  /**
   * Details for the goal of the type VISIT_NUM_PAGES.
   *
   * @param GoalVisitNumPagesDetails $visitNumPagesDetails
   */
  public function setVisitNumPagesDetails(GoalVisitNumPagesDetails $visitNumPagesDetails)
  {
    $this->visitNumPagesDetails = $visitNumPagesDetails;
  }
  /**
   * @return GoalVisitNumPagesDetails
   */
  public function getVisitNumPagesDetails()
  {
    return $this->visitNumPagesDetails;
  }
  /**
   * Details for the goal of the type VISIT_TIME_ON_SITE.
   *
   * @param GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails
   */
  public function setVisitTimeOnSiteDetails(GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails)
  {
    $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
  }
  /**
   * @return GoalVisitTimeOnSiteDetails
   */
  public function getVisitTimeOnSiteDetails()
  {
    return $this->visitTimeOnSiteDetails;
  }
  /**
   * Web property ID to which this goal belongs. The web property ID is of the
   * form UA-XXXXX-YY.
   *
   * @param string $webPropertyId
   */
  public function setWebPropertyId($webPropertyId)
  {
    $this->webPropertyId = $webPropertyId;
  }
  /**
   * @return string
   */
  public function getWebPropertyId()
  {
    return $this->webPropertyId;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Goal::class, 'Google_Service_Analytics_Goal');
← Back