AdGroupService provides operations for creating and managing ad groups.
An ad group is a collection of related ads and keywords and is associated
with a campaign.
Create an ad group.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroup | AdGroup | The new ad group. |
AdGroupResponse - The response, which indicates if the operation succeeded or failed.
Create one or more ad groups.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroups | AdGroup[] | A list of ad groups. |
AdGroupResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Delete the ad group (specified by adGroupID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
BasicResponse - The response, which indicates if the operation succeeded or failed.
Delete one or more ad groups (specified by adGroupIDs).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupIDs | long[] | A list of ad group IDs. |
BasicResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Return the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
AdGroup - The ad group.
Return the number of ads for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| includeDeleted | boolean | If True, include the deleted ads in the count. |
long - The number of ads for the ad group.
Return the maximum bid for Content Match® for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
double - The maximum bid for Content Match.
Return the number of excluded words for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| includeDeleted | boolean | If True, include excluded words that are in deleted ad groups in the count. |
long - The number of excluded words for the ad group.
Return the number of keywords for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| includeDeleted | boolean | If True, include the deleted keywords in the count. |
long - The number of keywords for the ad group.
Return one or more ad groups (specified by the list of adGroupIDs).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupIDs | long[] | A list of ad group IDs. |
AdGroup[] - The list of ad groups.
Return the 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 the deleted ad groups. |
| startElement | int | The first element to be returned (0-based; if a value <0 is entered, will default to 0). |
| numElements | int | The number of elements to be returned (1000 maximum; if a value <=0 is entered, will default to 1000). |
AdGroup[] - The list of ad groups for the campaign.
Return the ad groups with the indicated status for the campaign (specified by campaignID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| campaignID | long | The campaign ID. |
| adGroupStatus | AdGroupStatus | The ad group status. |
AdGroup[] - The list of ad groups with the indicated status for the specified campaign.
Return the maximum bid for Sponsored Search for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
double - The maximum bid for Sponsored Search.
Return the optimization guidelines for the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
AdGroupOptimizationGuidelines - The optimization guidelines for the ad group.
Return the status of the ad group (specified by adGroupID).
Capability required: CampaignRead
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
AdGroupStatus - The ad group status.
Move the ad group (specified by adGroupdID) to the campaign (specified by destinationCampaignID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ID of the ad group to be moved. |
| destinationCampaignID | long | The ID of the campaign to move the ad group to. |
| newAdGroupName | string | The new name for the ad group. (For this parameter, you may pass in the null string. If you pass in the null string, the old ad group name is used.) |
BasicResponse - The response, which indicates if the operation succeeded or failed.
Set the maximum bid for Content Match® for the ad group (specified by AdGroupID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| maxBid | double | The maximum bid for Content Match. |
AdGroupResponse - The response, which indicates if the operation succeeded or failed.
Set the maximum bid for Sponsored Search for the ad group (specified by AdGroupID).
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| maxBid | double | The maximum bid for Sponsored Search. |
AdGroupResponse - The response, which indicates if the operation succeeded or failed.
Set the optimization guidelines for the ad group.
Capability required: CampaignWrite
License command group: CampaignOptimization
| Parameter | Data Type | Description |
|---|---|---|
| optimizationGuidelines | AdGroupOptimizationGuidelines | The optimization guidelines for the ad group. |
AdGroupOptimizationGuidelinesResponse - The response, which indicates if the operation succeeded or failed.
Update an ad group.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroup | AdGroup | The ad group. |
| 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 optional element, the current value is not changed. |
AdGroupResponse - The response, which indicates if the operation succeeded or failed.
Update one or more ad groups.
Capability required: CampaignWrite
License command group: Marketing
| Parameter | Data Type | Description |
|---|---|---|
| adGroups | AdGroup[] | A list of ad groups. |
| 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 optional element, the current value is not changed. |
AdGroupResponse[] - A list of responses, which indicate if the operations succeeded or failed.
Update the status of the ad group (specified by adGroupID).
Capability required: CampaignWrite
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| adGroupID | long | The ad group ID. |
| status | AdGroupStatus | The new ad group status. You can set the status to On or Off, but not Deleted. (To delete an ad group, use the deleteAdGroup operation.) |
AdGroupResponse - The response, which indicates if the operation succeeded or failed.
Update the status of one or more ad groups (specified by the list of adGroupIDs).
Capability required: CampaignWrite
License command group: AdvancedTools
| Parameter | Data Type | Description |
|---|---|---|
| adGroupIDs | long[] | A list of ad group IDs. |
| status | AdGroupStatus | The new ad group status. You can set the status to On or Off, but not Deleted. (To delete one or more ad groups, use the deleteAdGroups operation.) |
AdGroupResponse[] - A list of responses, which indicate if the operations succeeded or failed.