131 lines
3.8 KiB
PHP
131 lines
3.8 KiB
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\Dfareporting;
|
||
|
|
|
||
|
|
class ClickThroughUrl extends \Google\Model
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Read-only convenience field representing the actual URL that will be used
|
||
|
|
* for this click-through. The URL is computed as follows: - If
|
||
|
|
* defaultLandingPage is enabled then the campaign's default landing page URL
|
||
|
|
* is assigned to this field. - If defaultLandingPage is not enabled and a
|
||
|
|
* landingPageId is specified then that landing page's URL is assigned to this
|
||
|
|
* field. - If neither of the above cases apply, then the
|
||
|
|
* customClickThroughUrl is assigned to this field.
|
||
|
|
*
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
public $computedClickThroughUrl;
|
||
|
|
/**
|
||
|
|
* Custom click-through URL. Applicable if the defaultLandingPage field is set
|
||
|
|
* to false and the landingPageId field is left unset.
|
||
|
|
*
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
public $customClickThroughUrl;
|
||
|
|
/**
|
||
|
|
* Whether the campaign default landing page is used.
|
||
|
|
*
|
||
|
|
* @var bool
|
||
|
|
*/
|
||
|
|
public $defaultLandingPage;
|
||
|
|
/**
|
||
|
|
* ID of the landing page for the click-through URL. Applicable if the
|
||
|
|
* defaultLandingPage field is set to false.
|
||
|
|
*
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
public $landingPageId;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Read-only convenience field representing the actual URL that will be used
|
||
|
|
* for this click-through. The URL is computed as follows: - If
|
||
|
|
* defaultLandingPage is enabled then the campaign's default landing page URL
|
||
|
|
* is assigned to this field. - If defaultLandingPage is not enabled and a
|
||
|
|
* landingPageId is specified then that landing page's URL is assigned to this
|
||
|
|
* field. - If neither of the above cases apply, then the
|
||
|
|
* customClickThroughUrl is assigned to this field.
|
||
|
|
*
|
||
|
|
* @param string $computedClickThroughUrl
|
||
|
|
*/
|
||
|
|
public function setComputedClickThroughUrl($computedClickThroughUrl)
|
||
|
|
{
|
||
|
|
$this->computedClickThroughUrl = $computedClickThroughUrl;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function getComputedClickThroughUrl()
|
||
|
|
{
|
||
|
|
return $this->computedClickThroughUrl;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Custom click-through URL. Applicable if the defaultLandingPage field is set
|
||
|
|
* to false and the landingPageId field is left unset.
|
||
|
|
*
|
||
|
|
* @param string $customClickThroughUrl
|
||
|
|
*/
|
||
|
|
public function setCustomClickThroughUrl($customClickThroughUrl)
|
||
|
|
{
|
||
|
|
$this->customClickThroughUrl = $customClickThroughUrl;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function getCustomClickThroughUrl()
|
||
|
|
{
|
||
|
|
return $this->customClickThroughUrl;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Whether the campaign default landing page is used.
|
||
|
|
*
|
||
|
|
* @param bool $defaultLandingPage
|
||
|
|
*/
|
||
|
|
public function setDefaultLandingPage($defaultLandingPage)
|
||
|
|
{
|
||
|
|
$this->defaultLandingPage = $defaultLandingPage;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return bool
|
||
|
|
*/
|
||
|
|
public function getDefaultLandingPage()
|
||
|
|
{
|
||
|
|
return $this->defaultLandingPage;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* ID of the landing page for the click-through URL. Applicable if the
|
||
|
|
* defaultLandingPage field is set to false.
|
||
|
|
*
|
||
|
|
* @param string $landingPageId
|
||
|
|
*/
|
||
|
|
public function setLandingPageId($landingPageId)
|
||
|
|
{
|
||
|
|
$this->landingPageId = $landingPageId;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function getLandingPageId()
|
||
|
|
{
|
||
|
|
return $this->landingPageId;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
||
|
|
class_alias(ClickThroughUrl::class, 'Google_Service_Dfareporting_ClickThroughUrl');
|