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 Friday, October 16, 2020 at 7:05:10 PM UTC+5:30 cv wrote:

> Hi Ernie,
>
> I am not sure is this the reason.
> Because I am facing issue with this account only.
>
> Can you please help?
>
> Thanks
>
>
> On Friday, 16 October 2020 at 10:43:20 UTC+5:30 adsapiforumadvisor wrote:
>
>> Hi,
>>
>> Thanks for posting your concern.
>>
>> I would like to inform you first that API version v3 
>> <https://developers.google.com/google-ads/api/docs/release-notes#300_beta_2020-02-27>,
>>  
>> which you are currently using, is already deprecated as discussed on our 
>> Deprecation 
>> Schedule <https://developers.google.com/google-ads/api/docs/sunset-dates> 
>> document. 
>> With this, we recommend that you upgrade to the newest version by following 
>> this guide 
>> <https://developers.google.com/google-ads/api/docs/version-migration#top_of_page>
>>  to 
>> try out new features in Google Ads API.
>>
>> After migrating to the newest version, please try the API request again. 
>> If the issue persists, you can provide the complete request and response 
>> logs, together with the error message and customer ID, so our team can 
>> investigate. You can provide the requested details via *Reply privately 
>> to author* option.
>>
>> Regards,
>> [image: Google Logo] 
>> Ernie John Blanca Tacata 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q269XD1: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/441b5807-9edd-4fb2-a052-80382a1b32d3n%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