PHP Class AdParamService, googleads-php-lib

Inheritance: extends AdWordsSoapClient
Exibir arquivo Open project: googleads/googleads-php-lib

Public Properties

Property Type Description
$classmap array Default class map for wsdl=>php
$endpoint string The endpoint of the service

Public Methods

Method Description
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
get ( $serviceSelector ) : A This field is required and should not be {@code null}.
mutate ( $operations ) : A This field must not contain {@code null} elements. This field must contain at least one element. This field is required and should not be {@code null}. The following {@link Operator}s are supported: SET, REMOVE.

Method Details

__construct() public method

Constructor using wsdl location and options array
public __construct ( string $wsdl, array $options, $user )
$wsdl string WSDL location for this service
$options array Options for the SoapClient

get() public method

Returns the ad parameters that match the criteria specified in the selector.
public get ( $serviceSelector ) : A
return A list of ad parameters.

mutate() public method

Sets and removes ad parameters.

Note: {@code ADD} is not supported. Use {@code SET} for new ad parameters.

  • {@code SET}: Creates or updates an ad parameter, setting the new parameterized value for the given ad group / keyword pair.
  • {@code REMOVE}: Removes an ad parameter. The default-value specified in the ad text will be used.
public mutate ( $operations ) : A
return A list of ad parameters, where each entry in the list is the result of applying the operation in the input list with the same index. For a {@code SET} operation, the returned ad parameter will contain the updated values. For a {@code REMOVE} operation, the returned ad parameter will simply be the ad parameter that was removed.

Property Details

$classmap public_oe static_oe property

Default class map for wsdl=>php
public static array $classmap
return array

$endpoint public_oe static_oe property

The endpoint of the service
public static string $endpoint
return string