PHP Class ContactService, googleads-php-lib

Inheritance: implements IService
Show file 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
createContacts ( $contacts ) : the Creates new {@link Contact} objects.
getContactsByStatement ( $statement ) : the Gets a {@link ContactPage} of {@link Contact} objects that satisfy the given {@link Statement#query}. The following fields are supported for filtering:
updateContacts ( $contacts ) : the Updates the specified {@link Contact} objects.

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

createContacts() public method

Creates new {@link Contact} objects.
public createContacts ( $contacts ) : the
return the created contacts with their IDs filled in

getContactsByStatement() public method

PQL Property Object Property
{@code name} {@link Contact#name}
{@code email} {@link Contact#email}
{@code id} {@link Contact#id}
{@code comment} {@link Contact#comment}
{@code companyId} {@link Contact#companyId}
{@code title} {@link Contact#title}
{@code cellPhone} {@link Contact#cellPhone}
{@code workPhone} {@link Contact#workPhone}
{@code faxPhone} {@link Contact#faxPhone}
{@code status} {@link Contact#status}
public getContactsByStatement ( $statement ) : the
return the contacts that match the given filter

updateContacts() public method

Updates the specified {@link Contact} objects.
public updateContacts ( $contacts ) : the
return the updated contacts

Property Details

$classmap public static property

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

$endpoint public static property

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