Re: Mutate members, CrmBasedUserList

2019-10-10 Thread Michel Maldonado
Thank you! then we will start filling the list with real e-mail addresses!

Op donderdag 10 oktober 2019 21:44:20 UTC+2 schreef adsapiforumadvisor:
>
> Hello Michel,
>
> Please find my response below inline:
>
> - Can I provide fake (but valid; lowercase, no spaces etc..) e-mail 
> addresses, for testing purposes? 
> --> *You cannot provide fake email addresses even for testing. The emails 
> addresses should be existing and should be able to targeted by Google 
> networks*. 
>
> - I've made a few successful API calls (with more than 1000 members), but 
> the List size remains 0. How can I debug this? The docs say, it can take up 
> to 48 hours before the data is visible, I've waited for more than 3 days 
> now.
> -->*Lets say you have sent 1500 email addresses and out of which 700 
> emails are able to target by Google networks. Even then according to the 
> customer match considerations the list will show the size as zero only. 
> Only after reaching more than 1,000 target-able members the list will 
> show the size rounded to the two most significant digits*
>
> Hope this helps, please let me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UKMsDq: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/d7b456a3-47c8-415d-be29-8c398f124b90%40googlegroups.com.


Mutate members, CrmBasedUserList

2019-10-10 Thread Michel Maldonado
Hello,

I'm trying to populate a UserList in the following way. 

public function populateUserList(UserList $list, User ...$users) : void
{
$members = [];
foreach ($users as $user) {
$member = new Member();
// Hash normalized email addresses based on SHA-256 hashing 
algorithm.

$member->setHashedEmail(self::normalizeAndHash($user->getEmailAddress()));
$members[] = $member;
}

$operation = new MutateMembersOperation();
$operand = new MutateMembersOperand();

$operand->setUserListId($list->getId());
$operand->setMembersList($members);
$operation->setOperand($operand);
$operation->setOperator(Operator::ADD);
$mutateMembersOperations[] = $operation;

/** @var MutateMembersReturnValue $result */
$result = 
$this->userListService->mutateMembers($mutateMembersOperations);

foreach ($result->getUserLists() as $userList) {
$this->logger->debug(
printf(
"%d email addresses were uploaded to user list with name 
'%s'"
. " and ID %d and are scheduled for review.\n",
count($users),
$userList->getName(),
$userList->getId()
)
);
}
}

I have two questions:

- Can I provide fake (but valid; lowercase, no spaces etc..) e-mail 
addresses, for testing purposes?
- I've made a few successful API calls (with more than 1000 members), but 
the List size remains 0. How can I debug this? The docs say, it can take up 
to 48 hours before the data is visible, I've waited for more than 3 days 
now.

Thanks in advance!

Michel

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2c2e4b5-7648-481a-a9dc-8f7f3f97c744%40googlegroups.com.