PHP Class 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
Afficher le fichier Open project: googleads/googleads-php-lib

Méthodes publiques

Свойство Type Description
$excludedLocations Location[]
$targetedLocations Location[]

Méthodes publiques

Méthode Description
__construct ( $targetedLocations = null, $excludedLocations = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Method Details

__construct() public méthode

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

getNamespace() public méthode

Gets the namesapce of this class
public getNamespace ( ) : string
Résultat string the namespace of this class

getXsiTypeName() public méthode

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
Résultat string the xsi:type name of this class

Property Details

$excludedLocations public_oe property

public Location[] $excludedLocations
Résultat Location[]

$targetedLocations public_oe property

public Location[] $targetedLocations
Résultat Location[]