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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b3bc8a2b-ada9-4ff5-824f-1d58afdb4a29n%40googlegroups.com.

Reply via email to