PHP Class ProductPackageService, googleads-php-lib

Inheritance: extends DfpSoapClient
Show file 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
createProductPackages ( $productPackages ) : the Creates new {@link ProductPackage} objects.
getProductPackagesByStatement ( $statement ) : the Gets a {@link ProductPackagePage} of {@link ProductPackage} objects that satisfy the filtering criteria specified by given {@link Statement#query}.
performProductPackageAction ( $action, $statement ) : the Performs actions on {@link ProductPackage} objects that match the given {@link Statement#query}.
updateProductPackages ( $productPackages ) : the Updates the specified {@link ProductPackage} 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

createProductPackages() public method

Creates new {@link ProductPackage} objects.
public createProductPackages ( $productPackages ) : the
return the persisted product packages with their ID filled in

getProductPackagesByStatement() public method

The following fields are supported for filtering:
PQL Property Object Property
{@code id} {@link ProductPackage#id}
{@code name} {@link ProductPackage#name}
{@code notes} {@link ProductPackage#notes}
{@code status} {@link ProductPackage#status}
{@code isArchived} {@link ProductPackage#isArchived}
{@code lastModifiedDateTime} {@link ProductPackage#lastModifiedDateTime}
public getProductPackagesByStatement ( $statement ) : the
return the product packages that match the given statement

performProductPackageAction() public method

Performs actions on {@link ProductPackage} objects that match the given {@link Statement#query}.
public performProductPackageAction ( $action, $statement ) : the
return the result of the action performed

updateProductPackages() public method

Updates the specified {@link ProductPackage} objects.
public updateProductPackages ( $productPackages ) : the
return the updated product packages

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