AdGroupAdOperation

  • Describes a single operation on an ad group ad, including create, update, or remove.

  • Theupdate_mask field uses a FieldMask to determine which resource fields are modified during an update operation.

  • policy_validation_parameter provides configuration for how policies are validated.

  • Theoperation field, which can be create, update, or remove, defines the mutate operation for the ad group ad.

  • Each operation type requires specific information, such as a resource name for update and remove operations, but not for create.

A single operation (create, update, remove) on an ad group ad.

Proto definition

Fields

operation

Union field. The mutate operation.

operation can be only one of the following:

create

AdGroupAd

Create operation: No resource name is expected for the new ad.

remove

string

Remove operation: A resource name for the removed ad is expected, in this format:

customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}

update

AdGroupAd

Update operation: The ad is expected to have a valid resource name.

policy_validation_parameter

PolicyValidationParameter

Configuration for how policies are validated.

update_mask

FieldMask

FieldMask that determines which resource fields are modified in an update.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.