I'm trying to send a batch of emails up via the API. But for some reason I keep getting the following error.
<faultstring>[RequiredError.REQUIRED @ operations[0].operand.userListId]</faultstring> my code is as follows: <?php require get_AWU_classesPath( 'AddEmailToList.php' ); $table_name = 'email_test'; $results = $db->get_results( "SELECT * FROM $table_name" ); $clientID = '***-***-****'; $listID = *********; $i = 0; $total = 0; $array = []; foreach ( $results as $result ) { $i++; $total++; $array[] = hash('sha256', strtolower(trim($result->email))); if($i === 4000){ $i = 0; AddCrmBasedUserList::authenticateAndRun( $array, $listID, $clientID ); } echo "Hashing and Uploading $total \r"; } I've tried a few list id's and they all exist. The AddCrmBasedUserList is basicly an identical copy of the one from AW Stack. The Auth and run function looks like public static function authenticateAndRun(array $emails, int $listId, string $clientCustomerId) { // Generate a refreshable OAuth2 credential for authentication. $oAuth2Credential = (new OAuth2TokenBuilder()) ->fromFile() ->build(); // Construct an API session configured from a properties file and the OAuth2 // credentials above. $session = (new AdWordsSessionBuilder()) ->fromFile() ->withOAuth2Credential($oAuth2Credential) ->withClientCustomerId($clientCustomerId) ->build(); self::run(new AdWordsServices(), $session, $emails, $listId); } Everything else seems to run fine except the Soap Envelope response and a 500 http code after submitting saying no list id. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/bc6b0652-390c-4a2c-b714-0e4fd0bb4871n%40googlegroups.com.