Here I have created custom attribute product-pv manually and I can assign value also.
I am creating a plugin. What i want to achieve is, “during the plugin activation itself” the predefined custom attributes must be programmatically created for all woocommerce products. These custom attributes can be given values later manually. So how can i achieve this setup?.