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

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

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

Свойство Тип Описание
$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
get ( $serviceSelector ) : List This field is required and should not be {@code null}.
getPendingInvitations ( $selector ) This field is required and should not be {@code null}.
mutate ( $operations ) : The 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: SET, ADD.
mutateLabel ( $operations ) This field is required and should not be {@code null}. The following {@link Operator}s are supported: ADD, REMOVE.
mutateLink ( $operations ) : results This field is required and should not be {@code null}. The following {@link Operator}s are supported: SET, ADD.
mutateManager ( $operations ) : results 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: SET.

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

__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

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

Returns the list of customers that meet the selector criteria.
public get ( $serviceSelector ) : List
Результат List of customers identified by the selector.

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

Returns the pending invitations for the customer IDs in the selector.
public getPendingInvitations ( $selector )

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

Modifies or creates new {@link ManagedCustomer}s.

Note: See {@link ManagedCustomerOperation} for available operators.

public mutate ( $operations ) : The
Результат The list of updated managed customers, returned in the same order as the operations array.

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

Adds {@linkplain AccountLabel}s to, and removes {@linkplain AccountLabel}s from, {@linkplain ManagedCustomer}s.

To add an {@linkplain AccountLabel} to a {@linkplain ManagedCustomer}, use {@link Operator#ADD}. To remove an {@linkplain AccountLabel} from a {@linkplain ManagedCustomer}, use {@link Operator#REMOVE}.

The label must already exist (see {@link AccountLabelService#mutate} for how to create them) and be owned by the authenticated user.

The {@linkplain ManagedCustomer} must already exist and be managed by the customer making the request (either directly or indirectly).

An AccountLabel may be applied to at most 1000 customers.

This method does not support partial failures, and will fail if any operation is invalid.

public mutateLabel ( $operations )

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

Moves client customers to new managers (moving links). Only the following action is possible:
  • SET + ACTIVE: manager moves client customers to new managers within the same manager account hierarchy
public mutateManager ( $operations ) : results
Результат results for the given operations

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

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

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

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

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