PHP 클래스 NetworkService, googleads-php-lib

파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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