PHP Class AccountLabelService, googleads-php-lib

Inheritance: extends AdWordsSoapClient
显示文件 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 ( $selector ) : response Returns a list of labels specified by the selector for the authenticated user.
mutate ( $operations ) : the 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: ADD, 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 a list of labels specified by the selector for the authenticated user.
public get ( $selector ) : response
return response containing lists of labels that meet all the criteria of the selector

mutate() public method

Possible actions:
  • Create a new label - create a new {@link Label} and call mutate with ADD operator
  • Edit the label name - set the appropriate fields in your {@linkplain Label} and call mutate with the SET operator. Null fields will be interpreted to mean "no change"
  • Delete the label - call mutate with REMOVE operator
public mutate ( $operations ) : the
return the mutated labels, in the same order that they were in as the parameter

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