createValue()
createValue(mixed $value): \Google\AdsApi\AdManager\v202105\Value
Creates a PQL `Value` from the specified value.
For example:
- A
TextValuefor a value of typestring. - A
BooleanValuefor typebool. - A
NumberValuefor typefloatorint. - A
DateTimeValuefor type Ad ManagerDateTime - A
DateValuefor type Ad ManagerDate - A
SetValuefor typearray.
If the specified value is already a PQL Value, the value is returned.
Parameters
| mixed | $value | the value to convert to a PQL value |
Throws
- \InvalidArgumentException
if value cannot be converted
Returns
\Google\AdsApi\AdManager\v202105\Value —a PQL value of the appropriate type