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
Mostrar archivo Open project: googleads/googleads-php-lib

Public Properties

Property Type Description
$excludedLocations Location[]
$targetedLocations Location[]

Public Methods

Method 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 method

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

getNamespace() public method

Gets the namesapce of this class
public getNamespace ( ) : string
return string the namespace of this class

getXsiTypeName() public method

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
return string the xsi:type name of this class

Property Details

$excludedLocations public_oe property

public Location[] $excludedLocations
return Location[]

$targetedLocations public_oe property

public Location[] $targetedLocations
return Location[]