RE: Issue with adding members to the existing CrmBasedUserList using Adwords API

2019-09-29 Thread Google Ads API Forum Advisor Prod
Hi Lars,

Instead of calling $userListService->mutate($operations), can you please try 
$userListService->mutateMembers($operations)? This sample code shows the exact 
details for adding members to a user list. Please let me know if that solves 
your issue.


Thanks,
Poki, Google Ads API Team
ref:_00D1U1174p._5001UHHvPi: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/ssMdb0PYMJ3N00F_4p3NrpQPqOEHckUWRxvA%40sfdc.net.


Re: Issue with adding members to the existing CrmBasedUserList using Adwords API

2019-09-25 Thread Lars Hemel
Hello Bharani,

I am receiving the UserListError.CONCRETE_TYPE_REQUIRED error, but have 
checked all resources online and cannot find where I go wrong.

I have created a CrmBasedUserList and would like to add Member of 
hashedEmail and hashedPhoneNumber. Some of the things I found online:
* The CrmBasedUserList has listType CRM_BASED so that should look good 
allthough I read online a lot about that I might be missing operand type in 
my soal call. But this is not added by default by the MutateMembersOperand 
class.
* I have updated to the latest version googleads-php-lib/43.0.0.
* I have tried changing the MutateMembersOperation order of setOperand and 
setOperator, but that did not help (nor should it be!).

This is part of my code:

*$mutMembers = new MutateMembersOperand();*
*$mutMembers->setUserListId($userListId);*

*$memberList[] = new Member($hashedEmail, $mobileId, $hashedPhoneNumber, 
$addressInfo, $userId);*

*$mutMembers->setMembersList($memberList);*
*$operations = [];*
*$operation = new MutateMembersOperation();*
*$operation->setOperand($mutMembers);*
*$operation->setOperator(Operator::ADD);*
*$operations[] = $operation;*

*$userListNew = $userListService->mutate($operations)->getValue()[0];*

And here is the resulting SOAP.

*AW_SOAP.NOTICE: POST /api/adwords/rm/v201809/AdwordsUserListService?wsdl 
HTTP/1.1*
*Host: adwords.google.com*
*Connection: close*
*User-Agent: PHP-SOAP/7.2.20RC1*
*Content-Type: text/xml; charset=utf-8*
*SOAPAction: ""*
*Content-Length: 2012*
*Authorization: REDACTED*

**
*http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809; 
xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201809; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>REDACTED
 
(AwApi-PHP, googleads-php-lib/43.0.0, 
PHP/7.2.20RC1)falsefalseADD853860912d480ad3fc4b40ae4361e4b26e223a0a5c0f04e3baf92a600ff42690d5576d1364dc2b26583b308da70acbee670b5a5946dc37ca38ee71f9be023a0b093fa5b2b*

*HTTP/1.1 500 Internal Server Error*
*Content-Type: text/xml; charset=UTF-8*
*Date: Wed, 25 Sep 2019 14:33:57 GMT*
*Expires: Wed, 25 Sep 2019 14:33:57 GMT*
*Cache-Control: private, max-age=0*
*X-Content-Type-Options: nosniff*
*X-Frame-Options: SAMEORIGIN*
*X-XSS-Protection: 1; mode=block*
*Server: GSE*
*Alt-Svc: quic=":443"; ma=2592000; v="46,43"*
*Accept-Ranges: none*
*Vary: Accept-Encoding*
*Connection: close*

*http://schemas.xmlsoap.org/soap/envelope/;>https://adwords.google.com/api/adwords/rm/v201809; 
xmlns="https://adwords.google.com/api/adwords/cm/v201809;>000593618b0468990a812f8f26082726AdwordsUserListServicemutate1121soap:Client[UserListError.CONCRETE_TYPE_REQUIRED
 
@ operations[0].operand]https://adwords.google.com/api/adwords/cm/v201809; 
xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201809;>[UserListError.CONCRETE_TYPE_REQUIRED
 
@ 
operations[0].operand]ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ns2:UserListError">operations[0].operandoperations0operandUserListError.CONCRETE_TYPE_REQUIREDUserListErrorCONCRETE_TYPE_REQUIRED*

*Exeptionerror: 0 [UserListError.CONCRETE_TYPE_REQUIRED @ 
operations[0].operand]*

Hope you can help and see what I am missing?

Cheers
Lars



On Monday, 25 February 2019 21:13:55 UTC+1, googleadsapi-forumadvisor wrote:
>
> Hello Alexander, 
>
> The error UserListError.CONCRETE_TYPE_REQUIRED 
> 
>  indicates 
> that you need to specify the type of user list used in your request. You 
> may check the sample SOAP request below with type for reference.
>
> https://adwords.google.com/api/adwords/rm/v201809; 
> xsi:type="ns8: CrmBasedUserList">
>
> You can also see the sample codes here 
> 
>  as 
> a reference in different languages. If you're still having an issue, could 
> you please share the API SOAP logs so I can take a closer look? You may 
> refer to the readMe 
>  
> section 
> of the client library 
>  for 
> guidance on how to enable logging. You can share the details privately via 
> Reply privately to author option.
>
> Regards,
> Bharani, AdWords API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and 

RE: Issue with adding members to the existing CrmBasedUserList using Adwords API

2019-02-25 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Alexander,

The error UserListError.CONCRETE_TYPE_REQUIRED
  
indicates

that you need to specify the type of user list used in your request. You
may check the sample SOAP request below with type for reference.

https://adwords.google.com/api/adwords/rm/v201809;
xsi:type="ns8: CrmBasedUserList">

You can also see the sample codes here
  
as

a reference in different languages. If you're still having an issue, could
you please share the API SOAP logs so I can take a closer look? You may
refer to the readMe
  
section

of the client library
 for
guidance on how to enable logging. You can share the details privately via
Reply privately to author option.

Regards,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/00d12jeahg01glosbo000rd2q0x70mjac1p6go30c1g68qj6d9h%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Issue with adding members to the existing CrmBasedUserList using Adwords API

2019-02-23 Thread Ершов Александр
Hello!

We're trying to add users to existing CrmBasedUserList (created using this 
example 

)

The code to create userList works ok, but when we're trying to add members 
to it, we are getting this error
Error: [UserListError.CONCRETE_TYPE_REQUIRED @ operations[0].operand]


In the description MutateMembersOperand we don't see the Type property to 
be set
Enter code here...


Operand containing user list id and members to be added or removed.






The id of the user list. This field is 
required and should not be {@code null}.






Set to indicate a remove-all operation which will remove all members from 
the user list. Can only be set with {@code Operator#REMOVE} and when set to 
true {@link #members} must be null or empty.






A list of members to be added or removed. If {@link #removeAll} is 
{@code true}, this list must be {@code null} or empty. Otherwise, this 
field is required and there must be at least one member. The maximum size of this collection is 
100. This field must 
not contain {@code null} elements.






Also I've checked the forum and found this 

 
response

Could you please take a look and let us know, whether
1. This option is not available in Adwords API right now
2. We need to add new members to CrmBasedList using some other technique

Thanks in advance!

Best wishes, 
Alexander

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6cc4b6d9-acb0-4484-b67b-a5b250201dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.