PHP Class PackageService, googleads-php-lib

Inheritance: extends Openbiz\Object\MetaObject
Datei anzeigen 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
createPackages ( $packages ) : the Creates new {@link Package} objects.
getPackagesByStatement ( $filterStatement ) : the Gets a {@link PackagePage} of {@link Package} objects that satisfy the given {@link Statement#query}. The following fields are supported for filtering:
performPackageAction ( $packageAction, $filterStatement ) : the Performs actions on {@link Package} objects that match the given {@link Statement}.
updatePackages ( $packages ) : the Updates the specified {@link Package} 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

createPackages() public method

For each package, the following fields are required:
  • {@link Package#proposalId}
  • {@link Package#productPackageId}
  • {@link Package#name}
public createPackages ( $packages ) : the
return the created packages with their IDs filled in

getPackagesByStatement() public method

PQL Property Object Property
{@code id} {@link Package#id}
{@code name} {@link Package#name}
{@code proposalId} {@link Package#proposalId}
{@code productPackageId} {@link Package#productPackageId}
{@code isArchived} {@link Package#isArchived}
{@code lastModifiedDateTime} {@link Package#lastModifiedDateTime}
public getPackagesByStatement ( $filterStatement ) : the
return the packages that match the given filter

performPackageAction() public method

Performs actions on {@link Package} objects that match the given {@link Statement}.
public performPackageAction ( $packageAction, $filterStatement ) : the
return the result of the action performed

updatePackages() public method

Updates the specified {@link Package} objects.
public updatePackages ( $packages ) : the
return the updated packages

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