when executing following code
ad_group_service = client.get_service("AdGroupService")
ad_group_criterion_service = client.get_service("AdGroupCriterionService")
ad_group_resource_name = ad_group_service.ad_group_path(
customer_id, ad_group_id
)
operation = client.get_type("AdGroupCriterionOperation")
affinity = operation.create
affinity.ad_group = ad_group_resource_name
affinity.user_list.user_list = "customers/CUSTOMER_ID/userLists/UserListCriterionID"
operations = []
operations.append(operation)
ad_group_criterion_response = (
ad_group_criterion_service.mutate_ad_group_criteria(
customer_id=customer_id,
operations=operations,
)
)
I got the following error:
Request made: ClientCustomerId:
CUSTOMER_ID
, Host: googleads.googleapis.com, Method: /google.ads.googleads.v8.services.AdGroupCriterionService/MutateAdGroupCriteria, RequestId: ZnE9QqL8OpziN1nRTz_Quw, IsFault: True, FaultMessage: Resource was not found.
I have double-checked the
CUSTOMER_ID, ad_group_id, and UserListCriterionID, they are matched. Could you help to check this error?