I am also facing the same issue. I am trying to link my Customer Match 
UserList to the campaign. Getting the following error using the code:
 

CampaignCriterionServiceClient campaignCriterionServiceClient = 
googleAdsClient.getLatestVersion().createCampaignCriterionServiceClient();
  UserListInfo userListInfo = 
UserListInfo.newBuilder().setUserList(userList).build();
  CampaignCriterion campaignCriterion = 
CampaignCriterion.newBuilder().setCampaign(ResourceNames.campaign(customerId, 
campaignId)).mergeUserList(userListInfo).build();
  
  CampaignCriterionOperation criterionOperation = 
CampaignCriterionOperation.newBuilder().setCreate(campaignCriterion).build();
  
  MutateCampaignCriteriaResponse response = 
campaignCriterionServiceClient.mutateCampaignCriteria(Long.toString(customerId),
 
ImmutableList.of(criterionOperation)); 

*ERROR:*

request_id: "2aU6KGGvOVHmF06kHCreNA"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.Request ID 2aU6KGGvOVHmF06kHCreNA failed due 
to GoogleAdsException. Underlying errors:  Error 0: error_code {  
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT}message: "The operation 
is not allowed for the given context."trigger {  string_value: 
"DISPLAY(DISPLAY_FULL_AUTOMATION)"}location {  field_path_elements {    
field_name: "operations"    index: 0  }  field_path_elements {    
field_name: "create"  }  field_path_elements {    field_name: "user_list"  
}}

On Thursday, July 8, 2021 at 7:07:30 AM UTC+5:30 adsapi wrote:

> Hello there,
>
> Thank you for raising this to us.
>
> So our team can better check on the issue, could you share with us the 
> following details below?
>
>    - If using the AdWords API 
>    <https://developers.google.com/adwords/api/docs/guides/start> 
>       - complete SOAP logs (request 
>       
> <https://developers.google.com/adwords/api/docs/guides/call-structure#request>
>        and response 
>       
> <https://developers.google.com/adwords/api/docs/guides/call-structure#response>
>  with 
>       requestId) 
>    - If using the Google Ads API 
>    <https://developers.google.com/google-ads/api/docs/start> 
>       - complete logs (request 
>       
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>        and response 
>       
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>        with request-id 
>       
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>       ) 
>    
> Please send the requested details via the *Reply privately to author* option. 
> If this option is not available, you may send the details directly to our 
> *googleadsa...@google.com* alias instead.
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2JZPPz:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b6a869ea-02da-4068-bd9b-8d11d9ccc767n%40googlegroups.com.
  • Re... Aditya Naukri
    • ... Google Ads API Forum Advisor
    • ... Aditya Naukri
      • ... Google Ads API Forum Advisor
    • ... Sergey Gusak
      • ... Sergey Gusak
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Sergey Gusak

Reply via email to