Checking the action hooks API reference, "activated_plugin" is an Advanced hook. It operates outside the normal loop which would permit you to do what you want.
A better way would be to add_action('admin_footer_text'), as illustrated in this WPBeginner article.
However, if you only want this to show when a particular plugin is activated, you can add the ...
Thist function not working in product page
So, for me the best options is first get the terms of the current post and the next step is get the name or slug, in this case i chose the category name
$product_cat_name = $term->name;
But you can chose the slug too (better option)
$product_cat_slug = $term->slug;
Here the ...
make the slug of parent menu item and sub menu same (first one item) like below
add_menu_page('Recent Bids', 'Auction Reports', 'manage_options','wc-auction-reports','acutions_recent_bids_list','dashicons-chart-area', 56);
'wc-auction-reports', // parent slug
'Recent Bids', ...