PHP Class CustomerService, googleads-php-lib

Inheritance: extends BaseService
Mostrar archivo Open project: googleads/googleads-php-lib Class Usage Examples

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 ( ) : customer Returns details of the authorized customer.
getCustomers ( ) Returns details of all the customers directly accessible by the user authenticating the call.
getServiceLinks ( $selector ) This field is required and should not be {@code null}.
mutate ( $customer ) This field is required and should not be {@code null}.
mutateServiceLinks ( $operations ) 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 details of the authorized customer.
public get ( ) : customer
return customer associated with the caller

getCustomers() public method

Following V201605, if {@code clientCustomerId} is specified in the request header, only details of that customer will be returned.

public getCustomers ( )

mutate() public method

Update the authorized customer.

While there are a limited set of properties available to update, please read this help center article on auto-tagging before updating {@code customer.autoTaggingEnabled}.

public mutate ( $customer )

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