PHP Класс LabelService, googleads-php-lib

Автор: WSDLInterpreter
Наследование: extends DfpSoapClient
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$classmap array Default class map for wsdl=>php
$endpoint string The endpoint of the service

Открытые методы

Метод Описание
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
createLabels ( $labels ) : the Creates new {@link Label} objects.
get ( $serviceSelector ) : The This field is required and should not be {@code null}.
getLabelsByStatement ( $filterStatement ) : the Gets a {@link LabelPage} of {@link Label} objects that satisfy the given {@link Statement#query}. The following fields are supported for filtering:
mutate ( $operations ) : The This field must not contain {@code null} elements. Elements in this field must have distinct IDs for following {@link Operator}s : ADD, SET, REMOVE. 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.
performLabelAction ( $labelAction, $filterStatement ) : the Performs actions on {@link Label} objects that match the given {@link Statement#query}.
query ( $query ) This field is required and should not be {@code null}.
updateLabels ( $labels ) : the Updates the specified {@link Label} objects.

Описание методов

__construct() публичный Метод

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

createLabels() публичный Метод

Creates new {@link Label} objects.
public createLabels ( $labels ) : the
Результат the created labels with their IDs filled in

get() публичный Метод

Returns a list of {@link Label}s.
public get ( $serviceSelector ) : The
Результат The page containing the {@link Label}s which meet the criteria specified by the selector.

getLabelsByStatement() публичный Метод

PQL Property Object Property
{@code id} {@link Label#id}
{@code type} {@link Label#type}
{@code name} {@link Label#name}
{@code description} {@link Label#description}
{@code isActive} {@link Label#isActive}
public getLabelsByStatement ( $filterStatement ) : the
Результат the labels that match the given filter

mutate() публичный Метод

Applies the list of mutate operations.
public mutate ( $operations ) : The
Результат The applied {@link Label}s.

performLabelAction() публичный Метод

Performs actions on {@link Label} objects that match the given {@link Statement#query}.
public performLabelAction ( $labelAction, $filterStatement ) : the
Результат the result of the action performed

query() публичный Метод

Returns the list of {@link Label}s that match the query.
public query ( $query )

updateLabels() публичный Метод

Updates the specified {@link Label} objects.
public updateLabels ( $labels ) : the
Результат the updated labels

Описание свойств

$classmap публичное статическое свойство

Default class map for wsdl=>php
public static array $classmap
Результат array

$endpoint публичное статическое свойство

The endpoint of the service
public static string $endpoint
Результат string