FeedItemServiceInterface feedItemService = adWordsServices.get(session, FeedItemServiceInterface.class);
String query = String.format("SELECT FeedItemId, AttributeValues, Scheduling WHERE Status = 'ENABLED' AND FeedId = YOUR_FEED_ID");
FeedItemPage feedItemPage = feedItemService.query(query);
System.out.println("--------------------------------------");
for (FeedItem i:feedItemPage.getEntries()) {
System.out.println("Feed ID : " + i.getFeedId());
System.out.println("Feed Item ID : " + i.getFeedItemId());
FeedItemAttributeValue[] fiav= i.getAttributeValues();
for(int j=0;j<fiav.length;j++){
System.out.println("Attribute Value : " + fiav[j].getStringValue());
}
System.out.println("--------------------------------------");
}
You can then refer to the AddCampaigns & AddAdGroups examples availabe
here to create your campaigns and ad groups via the API. While creating a campaign/ad group, you can specify the attributes that you retrieved from the feed. Also, you can refer to
this example to get an overview of how to go about creating feeds.
You can fetch the
templateID of a template ad using the field "TemplateId" in get call on AdGroupAdService. In general, information regarding all fields available in a TemplateAd is available
here. You can also refer to
this list of all fields that can be fetched using the AdGroupAdService, including template ads related fields. A complete list of all template ads that can be created via AdWords API is available
here (although not all templates available in the AdWords web interface are available via the API).
Most examples that I referred to are in the Java programming language, however, you can find same examples in
other client libraries as well. Hope this helps. Please revert if you have additional questions or concerns.