Mutate members, CrmBasedUserList

44 views
Skip to first unread message

Michel Maldonado

unread,
Oct 10, 2019, 10:02:22 AM10/10/19
to AdWords API and Google Ads API Forum
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

Google Ads API Forum Advisor Prod

unread,
Oct 10, 2019, 3:44:20 PM10/10/19
to miche...@gmail.com, adwor...@googlegroups.com
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

Michel Maldonado

unread,
Oct 11, 2019, 1:52:52 AM10/11/19
to AdWords API and Google Ads API Forum
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:
Reply all
Reply to author
Forward
0 new messages