RE: Get Location Name/Address of Campaigns Locations using CampaignCriterionService

2020-01-28 Thread Google Ads API Forum Advisor Prod
Hi Pradeep,

Thank you for reaching out. You can get the locationName from the 
CampaignCriterionService. To get the other attributes, you should use the Geo 
Performance Report.

Regards,
Mitchell
Google Ads API Team
ref:_00D1U1174p._5001USx24F:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cJ_d_0Q4U29100kejbSZ2LSquyiCnOr8P2KA%40sfdc.net.


Get Location Name/Address of Campaigns Locations using CampaignCriterionService

2020-01-27 Thread Pradeep Datla
Hi,
I am trying to get Locations saved in campaign by our user through adwords 
api. We are using CampaignCriterionService to get the list of Locations and 
Proximity, but i am only getting the location id's in the response. 
How do i get* Location Name, Proximity radius and the location address of 
the proximity* from the api.

I added snippet of my code showing the selectors . if i am sending 
incorrect selectors. can you guide me what are the proper selectors to get 
the reuirements i mentioned above,


using (CampaignCriterionService campaignCriterionService = 
(CampaignCriterionService)user.GetService(AdWordsService.v201809.CampaignCriterionService))
{
// Create the selector.
Selector selector = new Selector()
{
fields = new string[]
{
Criterion.Fields.Id,
Criterion.Fields.CriteriaType,
CampaignCriterion.Fields.CampaignId
},
predicates = new Predicate[]
{

Predicate.Equals(CampaignCriterion.Fields.CampaignId, campaignID)
},
paging = Paging.Default
};

CampaignCriterionPage page = new CampaignCriterionPage();


Thank You,
Pradeep Datla.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/02135c41-0de6-4af9-8461-7a57259989af%40googlegroups.com.