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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d2c2e4b5-7648-481a-a9dc-8f7f3f97c744%40googlegroups.com.