
Hi Ananth,
Thanks for posting your concern.
Could you confirm first if your concern is related AdWords API? If yes, with regard to the sample code in the provided link, you may use the CampaignCriterionService.mutate() to create a location type criterion. Then specify the criteria country code (country code for 'US' is '2840') of location that you want to target. You may refer to this link to see the complete list of the locations that you can target for your campaign.
Additionally, you may refer to this documentation to know how to make API call for targeting specific location. Let me know if there is unclear on the document that I suggested so I can provide further support.
Regards,
Ejay
Google Ads API Team