get_post_thumbnail_id /set_post_thumbnail not working

You need to call get_post_thumbnail_id() with the ID of the post, not the post object.

$importbookcoverid = get_post_thumbnail_id( $importbookpost->ID );

and you should be fine.

techhipbettruvabetnorabahisbahis forumueduseduedueduseduedusedueduedusedu