Hi,
I'm trying to generate a field mask for pausing keywords in a particular ad group, but keep getting a field mask missing error, which I can't find much if any useful documentation about.
I'm using the GoogleAdsService to handle mutate operations and am generating the update mask in this manner
{
'ad_group_criterion_operation': {
'update': {
'resource_name': f'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{keyword_id}',
'status': google_ads_client.get_type('AdGroupCriterionStatusEnum').PAUSED
}
}
}
but am getting the following response
Fault: errors {
error_code {
field_mask_error: FIELD_MASK_MISSING
}
message: "Cannot use empty field mask in update operation."
location {
field_path_elements {
field_name: "mutate_operations"
index {
}
}
field_path_elements {
field_name: "ad_group_criterion_operation"
}
}
}
A similar method works fine for creating keywords, any thoughts about what is going wrong?
Nate