CampaignService provides operations for creating and managing campaigns.
A campaign is a collection of one or more ad groups and is associated
with an account.
Create a campaign.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaign | Campaign | The new campaign. |
CampaignResponse - The response, which indicates if the operation succeeded or failed.
Create one or more campaigns.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaigns | Campaign[] | A list of campaigns. |
CampaignResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Delete the campaign (specified by campaignID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
BasicResponse - The response, which indicates if the operation succeeded or failed.
Delete one or more campaigns (specified by the list of campaignIDs).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignIDs | long[] | A list of campaign IDs. |
BasicResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Delete the geographic location for the campaign (specified by campaignID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
BasicResponse - The response, which indicates if the operation succeeded or failed.
Return the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
Campaign - The campaign.
Return the number of ad groups for the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| includeDeleted | boolean | If true, include deleted ad groups in the count. |
long - The number of ad groups for the campaign.
Return the number of keywords for the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| includeDeleted | boolean | If true, include deleted keywords in the count. |
long - The number of keywords for the campaign.
Return one or more campaigns (specified by a list of campaignIDs).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignIDs | long[] | A list of campaign IDs. |
Campaign[] - A list of campaigns.
Return the campaigns for the account (specified by accountID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| accountID | string | The account ID. |
| includeDeleted | boolean | If true, include deleted campaigns. |
Campaign[] - A list of all campaigns for the account.
Return the campaigns with the indicated status for the account (specified by accountID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| accountID | string | The account ID. |
| status | CampaignStatus | The campaign status. |
Campaign[] - A list of campaigns with the indicated status for the specified account.
Return the geographic location for the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
string[] - The list of geographic locations for the campaign or, if you did not set any geographic locations, an empty list.
Return the minimum bid for the optimization guidelines and the campaign (specified by campaignID).
Added in: Version 4.0.0
Capability required: CampaignRead
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
double - The minimum bid.
Return the optimization guidelines for the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
CampaignOptimizationGuidelines - The optimization guidelines for the campaign.
Return the status of the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
CampaignStatus - The status of the campaign.
Enable or disable optimization for the campaign (specified by campaignID).
Before you can enable campaign optimization, you must create a campaign
and set up the campaign optimization guidelines. Optionally, you may
also set up the ad group and keyword optimization guidelines
(see Campaign Optimization).
To set up the optimization guidelines, use
setOptimizationGuidelinesForCampaign,
setOptimizationGuidelinesForAdGroup, and
setOptimizationGuidelinesForKeyword.
Capability required: CampaignWrite
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| campaignOptimizationON | boolean | If true, campaign optimization is enabled. |
BasicResponse - The response, which indicates if the operation succeeded or failed.
Set the geographic location for the campaign (specified by campaignID). If you do not set a geographic location, the campaign defaults to the market-level geographic location.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| geoStrings | string[] | A list of geographic locations. |
SetGeographicLocationResponse - The response, which indicates if the locations you submitted were recognized and successfully set.
Set the optimization guidelines for the campaign.
Capability required: CampaignWrite
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| optimizationGuidelines | CampaignOptimizationGuidelines | The optimization guidelines for the campaign. |
CampaignOptimizationGuidelinesResponse - The response, which indicates if the operation succeeded or failed.
Update a campaign.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaign | Campaign | A campaign. |
| updateAll | boolean | If true, the system performs a full update.
All elements are updated. If you pass in the null value or omit an element,
the current value is cleared.
If false, the system performs a partial update. Only those elements you specify are updated. If you pass in the null value or omit an element, the current value is not changed. |
CampaignResponse - The response, which indicates if the operation succeeded or failed.
Update one or more campaigns.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaigns | Campaign[] | A list of campaigns. |
| updateAll | boolean | If true, the system performs a full update.
All elements are updated. If you pass in the null value or omit an element,
the current value is cleared.
If false, the system performs a partial update. Only those elements you specify are updated. If you pass in the null value or omit an element, the current value is not changed. |
CampaignResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Update the status of the campaign (specified by campaignID).
Capability required: CampaignWrite
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| status | CampaignStatus | The new campaign status. You can set the status to On or Off, but not Deleted. (To delete a campaign, use the deleteCampaign operation.) |
CampaignResponse - The response, which indicates if the operation succeeded or failed.
Update the status of one or more campaigns (specified by a list of campaignIDs).
Capability required: CampaignWrite
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| campaignIDs | long[] | A list of campaign IDs. |
| status | CampaignStatus | The new campaign status. You can set the status to On or Off, but not Deleted. (To delete a campaign, use the deleteCampaigns operation.) |
CampaignResponse[] - A list of responses, which indicate if the operations succeeded or failed.