Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the
REST Introduction for details.
CampaignOperation
A single operation (create, update, remove) on a campaign.
JSON representation |
{
"updateMask": string,
// Union field operation can be only one of the following:
"create": {
object (Campaign )
},
"update": {
object (Campaign )
},
"remove": string
// End of list of possible types for union field operation .
} |
Fields |
updateMask |
string (FieldMask format)
FieldMask that determines which resource fields are modified in an update. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
Union field operation . The mutate operation. operation can be only one of the following: |
create |
object (Campaign )
Create operation: No resource name is expected for the new campaign.
|
update |
object (Campaign )
Update operation: The campaign is expected to have a valid resource name.
|
remove |
string
Remove operation: A resource name for the removed campaign is expected, in this format: customers/{customerId}/campaigns/{campaignId}
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-06 UTC.
[null,null,["Last updated 2025-03-06 UTC."],[[["This documentation describes a single operation (create, update, or remove) on a Google Ads campaign using JSON format."],["The `operation` field specifies the type of operation, with `create` for new campaigns, `update` for existing ones, and `remove` for deletion."],["For updates, the `updateMask` field is used to indicate which specific fields of the campaign should be modified."],["Resource names are required for update and remove operations but not for creating a new campaign."]]],[]]