This example is currently under development.
Each successfully created keyword is assigned a keyword ID by Microsoft adCenter. The keyword ID is stored in the Id element of the Keyword object.
When you have received the keyword IDs, you should store them for future use. For information about why storing the IDs is recommended, see Creating an Efficient Microsoft adCenter Application. If you don't store them, you can retrieve them by calling the GetKeywordsByAdGroupId service operation. You can retrieve the properties associated with a keyword by calling the GetKeywordsByIds service operation.
Calling GetKeywordsByAdGroupId or GetAdKeywordsByIds reduces your API quota. For more information, see Quotas in Microsoft adCenter.
When you have successfully created your ads and keywords, the next step is to submit your ad group for approval. For an example about submitting your ad group for approval, see Submit an Ad Group for Approval in Perl.