\Google\AdsApi\CommonAdsBuilder

Populates a data object from configuration settings.

Summary

Methods
Constants
from()
build()
defaultOptionals()
validate()
DEFAULT_CONFIGURATION_FILENAME
No protected methods found
N/A
No private methods found
N/A

Constants

DEFAULT_CONFIGURATION_FILENAME

DEFAULT_CONFIGURATION_FILENAME

Methods

build()

build(): mixed

Creates a new instance of the data object being populated. This method should call defaultOptionals() and validate().

Throws

\InvalidArgumentException

if there are any validation errors

Returns

mixed —

the data object

defaultOptionals()

defaultOptionals()

Sets all optional fields to their default if they are `null`.

validate()

validate()

Checks that required fields have been included and all included fields are valid (e.g., URIs are valid).

Throws

\InvalidArgumentException

if there are any validation errors