\Google\AdsApi\CommonConfigurationLoader

Loads settings from *.ini files into configuration objects.

Summary

Methods
Properties
Constants
__construct()
fromFile()
fromString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$environmentalVariables
N/A

Properties

$environmentalVariables

$environmentalVariables :

Type

Methods

fromFile()

fromFile(string  $configIniFilePath): \Google\AdsApi\Common\Configuration

Creates a configuration from a filepath to an *.ini file. If the file isn't found in the specified path, we will try to find the file in the user's home directory.

E.g., If you specified the path "/config/ads/ads_props.ini" and it doesn't exist, we will try to find "ads_props.ini" in your home directory.

Parameters

string $configIniFilePath

the filepath to the *.ini file

Throws

\InvalidArgumentException

if the config file could not be found

Returns

\Google\AdsApi\Common\Configuration

the created configuration

fromString()

fromString(string  $iniString): \Google\AdsApi\Common\Configuration

Creates a configuration from an *.ini string.

Parameters

string $iniString

Returns

\Google\AdsApi\Common\Configuration

the created configuration