Class: AdWordsUser
Source Location: /AdWords/Lib/AdWordsUser.php
AdsUser
|
--AdWordsUser
User class for the AdWords API to create SOAP clients to the available API services.
|
|
Class Details
[line 42]
User class for the AdWords API to create SOAP clients to the available API services.
Class Methods
constructor __construct [line 99]
AdWordsUser __construct(
[string
$authenticationIniPath = NULL], [string
$email = NULL], [string
$password = NULL], [string
$developerToken = NULL], [string
$applicationToken = NULL], [string
$userAgent = NULL], [string
$clientId = NULL], [string
$settingsIniPath = NULL], [string
$authToken = NULL], [array
$oauthInfo = NULL])
|
|
The AdWordsUser constructor. The AdWordsUser class can be configured in one of two ways: - Using an authenitcation INI file
- Using supplied credentials
If an authentication INI file is provided and successfully loaded, those values will be used unless a corresponding parameter overwrites it. If the authentication INI file is not provided (e.g. it is NULL) the class will attempt to load the default authentication file at the path of "../auth.ini" relative to this file's directory. Any corresponding parameter, which is not NULL, will, however, overwrite any parameter loaded from the default INI. Likewise, if a custom settings INI file is not provided, the default settings INI file will be loaded from the path of "../settings.ini" relative to this file's directory.
Tags:
Overrides AdsUser::__construct() (Constructor for AdsUser.)
Parameters:
method GetAdExtensionOverrideService [line 165]
AdExtensionOverrideService GetAdExtensionOverrideService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the AdExtensionOverrideService SOAP client.
Tags:
Parameters:
method GetAdGroupAdService [line 184]
AdGroupAdService GetAdGroupAdService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the AdGroupAdService SOAP client.
Tags:
Parameters:
method GetAdGroupCriterionService [line 205]
AdGroupCriterionService GetAdGroupCriterionService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL], [bool
$partialFailure = NULL])
|
|
Gets the AdGroupCriterionService SOAP client.
Tags:
Parameters:
method GetAdGroupService [line 224]
AdGroupService GetAdGroupService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the AdGroupService SOAP client.
Tags:
Parameters:
method GetAdParamService [line 243]
AdParamService GetAdParamService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the AdParamService SOAP client.
Tags:
Parameters:
method GetAlertService [line 262]
AlertService GetAlertService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the AlertService SOAP client.
Tags:
Parameters:
method GetApplicationToken [line 734]
string GetApplicationToken(
)
|
|
Gets the application token that this user.
Tags:
method GetAuthToken [line 698]
Gets the authentication token.
Tags:
method GetBidLandscapeService [line 281]
BidLandscapeService GetBidLandscapeService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the BidLandscapeService SOAP client.
Tags:
Parameters:
method GetBulkMutateJobService [line 300]
BulkMutateJobService GetBulkMutateJobService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the BulkMutateJobService SOAP client.
Tags:
Parameters:
method GetBulkOpportunityService [line 319]
BulkOpportunityService GetBulkOpportunityService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the BulkOpportunityService SOAP client.
Tags:
Parameters:
method GetCampaignAdExtensionService [line 339]
CampaignAdExtensionService GetCampaignAdExtensionService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the CampaignAdExtensionService SOAP client.
Tags:
Parameters:
method GetCampaignCriterionService [line 359]
CampaignCriterionService GetCampaignCriterionService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the CampaignCriterionService SOAP client.
Tags:
Parameters:
method GetCampaignService [line 378]
CampaignService GetCampaignService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the CampaignService SOAP client.
Tags:
Parameters:
method GetCampaignTargetService [line 397]
CampaignTargetService GetCampaignTargetService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the CampaignTargetService SOAP client.
Tags:
Parameters:
method GetClientId [line 751]
Gets the client ID for this user. Can be the client email or client customer ID.
Tags:
method GetClientLibraryIdentifier [line 830]
string GetClientLibraryIdentifier(
)
|
|
Gets the client library identifier used for user-agent fields.
Tags:
Overrides AdsUser::GetClientLibraryIdentifier() (Gets the client library identifier used for user-agent fields.)
method GetConversionTrackerService [line 417]
ConversionTrackerService GetConversionTrackerService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the ConversionTrackerService SOAP client.
Tags:
Parameters:
method GetCustomerSyncService [line 436]
CustomerSyncService GetCustomerSyncService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the CustomerSyncService SOAP client.
Tags:
Parameters:
method GetDataService [line 455]
DataService GetDataService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the DataService SOAP client.
Tags:
Parameters:
method GetDeveloperToken [line 718]
string GetDeveloperToken(
)
|
|
Gets the developer token for this user.
Tags:
method GetEmail [line 798]
Gets the email address of the user login.
Tags:
method GetExperimentService [line 474]
ExperimentService GetExperimentService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the ExperimentService SOAP client.
Tags:
Parameters:
method GetGeoLocationService [line 493]
GeoLocationService GetGeoLocationService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the GeoLocationService SOAP client.
Tags:
Parameters:
method GetInfoService [line 512]
InfoService GetInfoService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the InfoService SOAP client.
Tags:
Parameters:
method GetMediaService [line 531]
MediaService GetMediaService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the MediaService SOAP client.
Tags:
Parameters:
method GetOAuthScope [line 871]
string GetOAuthScope(
[string
$server = NULL])
|
|
Gets the OAuth scope for this user.
Tags:
Overrides AdsUser::GetOAuthScope() (Gets the OAuth scope for this user.)
Parameters:
method GetPassword [line 814]
Gets the password for this user.
Tags:
method GetReportDefinitionService [line 550]
ReportDefinitionService GetReportDefinitionService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the ReportDefinitionService SOAP client.
Tags:
Parameters:
method GetServicedAccountService [line 569]
ServicedAccountService GetServicedAccountService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the ServicedAccountService SOAP client.
Tags:
Parameters:
method GetTargetingIdeaService [line 588]
TargetingIdeaService GetTargetingIdeaService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the TargetingIdeaService SOAP client.
Tags:
Parameters:
method GetTrafficEstimatorService [line 607]
TrafficEstimatorService GetTrafficEstimatorService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the TrafficEstimatorService SOAP client.
Tags:
Parameters:
method GetUserAgent [line 780]
Gets the user agent for this library.
Tags:
method GetUserListService [line 626]
TrafficEstimatorService GetUserListService(
[string
$version = NULL], [string
$server = NULL], [
$serviceFactory = NULL], [bool
$validateOnly = NULL])
|
|
Gets the UserListService SOAP client.
Tags:
Parameters:
method RegenerateAuthToken [line 683]
string RegenerateAuthToken(
[string
$server = NULL])
|
|
Regenerates the authentication token and sets it for this user.
Tags:
Parameters:
method SetApplicationToken [line 742]
void SetApplicationToken(
string
$applicationToken)
|
|
Sets the application token for this user.
Tags:
Parameters:
method SetAuthToken [line 710]
void SetAuthToken(
string
$authToken)
|
|
Sets the authentication token.
Tags:
Parameters:
method SetClientId [line 765]
void SetClientId(
string
$clientId)
|
|
Sets the client ID for this user. Can be the client email or client customer ID. Setting $clientId to NULL will result in removing both the clientEmail and clientCustomerId fields.
Tags:
Parameters:
method SetClientLibraryUserAgent [line 789]
void SetClientLibraryUserAgent(
string
$userAgent)
|
|
Sets the user agent for this library.
Tags:
Parameters:
method SetDeveloperToken [line 726]
void SetDeveloperToken(
string
$developerToken)
|
|
Sets the developer token for this user.
Tags:
Parameters:
method SetEmail [line 806]
void SetEmail(
string
$email)
|
|
Sets the email address of the user login.
Tags:
Parameters:
method SetPassword [line 822]
void SetPassword(
string
$password)
|
|
Sets the password for this user.
Tags:
Parameters:
method ValidateUser [line 838]
Validates the user and throws a validation error if there are any errors.
Tags:
|