AdWordsCurl
in package
Class AdWordsCurl
Table of Contents
- $apiClient : GoogleServicesApiClient
- __construct() : mixed
- AdWordsCurl constructor.
- campaignsOverview() : ResponseInterface
- Sends a cURL request to the Google AdWords API to fetch campaigns of client.
- changeStatus() : ResponseInterface
- Sends a cURL request to the Google AdWords API to change the status of an AdWords campaign.
- updateBudget() : ResponseInterface
- Sends a cURL request to the Google AdWords API to update the budget of an AdWords campaign.
Properties
$apiClient
protected
GoogleServicesApiClient
$apiClient
Methods
__construct()
AdWordsCurl constructor.
public
__construct(GoogleServicesApiClient $apiClient) : mixed
Parameters
- $apiClient : GoogleServicesApiClient
Return values
mixed —campaignsOverview()
Sends a cURL request to the Google AdWords API to fetch campaigns of client.
public
campaignsOverview([string|null $dateRange = null ]) : ResponseInterface
Parameters
- $dateRange : string|null = null
-
(Optional) Date range for request.
Return values
ResponseInterface —changeStatus()
Sends a cURL request to the Google AdWords API to change the status of an AdWords campaign.
public
changeStatus(AdWordsCampaignId $campaignId, AdWordsCampaignStatus $status) : ResponseInterface
Parameters
- $campaignId : AdWordsCampaignId
-
Id of campaign to be updated.
- $status : AdWordsCampaignStatus
-
New campaign state.
Return values
ResponseInterface —updateBudget()
Sends a cURL request to the Google AdWords API to update the budget of an AdWords campaign.
public
updateBudget(AdWordsCampaignId $campaignId, AdWordsBudget $budget) : ResponseInterface
Parameters
- $campaignId : AdWordsCampaignId
-
Id of campaign to be updated.
- $budget : AdWordsBudget
-
New budget value for campaign.