PHP Класс GeoTargeting, googleads-php-lib

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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$excludedLocations Location[]
$targetedLocations Location[]

Открытые методы

Метод Описание
__construct ( $targetedLocations = null, $excludedLocations = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Описание методов

__construct() публичный Метод

public __construct ( $targetedLocations = null, $excludedLocations = null )

getNamespace() публичный Метод

Gets the namesapce of this class
public getNamespace ( ) : string
Результат string the namespace of this class

getXsiTypeName() публичный Метод

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
Результат string the xsi:type name of this class

Описание свойств

$excludedLocations публичное свойство

public Location[] $excludedLocations
Результат Location[]

$targetedLocations публичное свойство

public Location[] $targetedLocations
Результат Location[]