This work is very simple.
- create php function extract_kw($text); this function will extract all words in $words_list from a text with 2 conditions :
1 - word must be greater than 3 characters
2 - word must be counted more than 2 time in the text
- create php function add_keyword($words_list)
- create php function group($name,$action) where $action = 'create' or $action = 'modify' or $action = 'delete'
- create php function text_ads($title,$description1,$description2,$display_url,$target_url,$action='create') where $action = 'create' or $action = 'modify' or $action = 'delete'
These functions can be created in a class or on 3 distinct functions
If you have not a BingAds account, you can create a Sandbox account and also, you can find several sample php script with API at [login to view URL]
Best Regards