PHP Class BudgetOrderService, googleads-php-lib

Inheritance: extends AdWordsSoapClient
Mostrar archivo 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 ( $serviceSelector ) : A This field is required and should not be {@code null}.
getBillingAccounts ( ) : A Returns all the open/active BillingAccounts associated with the current manager.
mutate ( $operations ) : BudgetOrders 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

Gets a list of {@link BudgetOrder}s using the generic selector.
public get ( $serviceSelector ) : A
return A {@link BudgetOrderPage} of BudgetOrders of the client customer. All BudgetOrder fields are returned. Stats are not yet supported.

getBillingAccounts() public method

Returns all the open/active BillingAccounts associated with the current manager.
public getBillingAccounts ( ) : A
return A list of {@link BillingAccount}s.

mutate() public method

Mutates BudgetOrders, supported operations are:

ADD: Adds a {@link BudgetOrder} to the billing account specified by the billing account ID.

SET: Sets the start/end date and amount of the {@link BudgetOrder}.

REMOVE: Cancels the {@link BudgetOrder} (status change).

Warning: The BudgetOrderService is limited to one operation per mutate request. Any attempt to make more than one operation will result in an ApiException.

public mutate ( $operations ) : BudgetOrders
return BudgetOrders affected by the mutate operation.

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