Hi Shobhan, I'm not 100% clear on what you are trying to achieve, but my guess is that you want to have different ads for different geographic locations. If yes,
- Create a campaign + adGroup for the location you want to target using CampaignService and AdGroupService. - Create your location-specific ads in that campaign using AdGroupAdService. - Target your campaign to serve in the desired geo location. Add a Location criterion using CampaignCriterionService. The location IDs are available on https://developers.google.com/adwords/api/docs/appendix/geotargeting Here are some C# code examples that you can refer to: https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/BasicOperations/AddCampaigns.cs https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/BasicOperations/AddAdGroups.cs https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/BasicOperations/AddTextAds.cs https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/Targeting/AddCampaignTargetingCriteria.cs Cheers, Anash P. Oommen, AdWords API Advisor. On Friday, January 16, 2015 at 11:49:06 AM UTC+5:30, Shobhan Babu wrote: > > Hi, > > I want to post the ads based on the location ,how can we do this thing > based on the location, I have searched for api,but unfortunately I didn't > get any code for this . > > could you please tell me how to post the ads based on the location or city. > > > Thank you > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b5f28434-6810-4b05-84ac-d32f99d26f2d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.