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

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

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

Свойство Тип Описание
$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
getAllNetworks ( ) : the Returns the list of {@link Network} objects to which the current login has access.
getCurrentNetwork ( ) : the Returns the current network for which requests are being made.
makeTestNetwork ( ) Creates a new blank network for testing purposes using the current login.
updateNetwork ( $network ) : the Updates the specified network. Currently, only the network display name can be updated.

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

__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

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

Intended to be used without a network code in the SOAP header when the login may have more than one network associated with it.

public getAllNetworks ( ) : the
Результат the networks to which the current login has access

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

Returns the current network for which requests are being made.
public getCurrentNetwork ( ) : the
Результат the network for which the user is currently making the request

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

Each login(i.e. email address) can only have one test network. Data from any of your existing networks will not be transferred to the new test network. Once the test network is created, the test network can be used in the API by supplying the {@link Network#networkCode} in the SOAP header or by logging into the DFP UI.

Test networks are limited in the following ways:

  • Test networks cannot serve ads.
  • Because test networks cannot serve ads, reports will always come back without data.
  • Since forecasting requires serving history, forecast service results will be faked. See {@link ForecastService} for more info.
  • Test networks are, by default, small business networks and do not have any premium features. To have additional features turned on, please contact your account manager.
  • Test networks are limited to 10,000 objects per entity type.

public makeTestNetwork ( )

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

Updates the specified network. Currently, only the network display name can be updated.
public updateNetwork ( $network ) : the
Результат the updated network

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

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

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

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

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