Re: How to get campaigns targeted location group using api

2016-10-17 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Sachin,

I see that one of my colleague provided a sample request and response to 
demonstrate how to get the details of a location group campaign criterion 
on this forum post 
. Did 
that help in getting the IncomeOperand 

 details? 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cecb9e30-7d3a-4a72-aa0a-c3ddf7d0b781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get campaigns targeted location group using api

2016-10-15 Thread Sachin Kumar
Hi Anil,

What is the function to get household income of geo location? Can you plz 
share your code?


Thanks & Regrads
Sachin

On Friday, June 17, 2016 at 3:53:41 PM UTC+5:30, Anil wrote:
>
> Hello,
>
> We have campaign where location group is targeted "* top 10% (US) 
> within United States".
> To get locations targeted via API we have used Campaign Criterion service 
> where we get this under location groups where only id is mentioned. 
> How can we get the actual group name like "top 10% (US) within United 
> States"?
>
> Below is the sample of API response :
>
> [criterion] => LocationGroups Object
> (
> [feedId] => 
> [matchingFunction] => FeedFunction Object
> (
> [operator] => AND
> [lhsOperand] => Array
> (
> [0] => IncomeOperand Object
> (
> [tier] => TIER_1
> [FunctionArgumentOperandType] => 
> IncomeOperand
> 
> [_parameterMap:FunctionArgumentOperand:private] => Array
> (
> 
> [FunctionArgumentOperand.Type] => FunctionArgumentOperandType
> )
>
> )
>
> )
>
> [rhsOperand] => Array
> (
> [0] => GeoTargetOperand Object
> (
> [locations] => Array
> (
> [0] => 2840
> )
>
> [FunctionArgumentOperandType] => 
> GeoTargetOperand
> 
> [_parameterMap:FunctionArgumentOperand:private] => Array
> (
> 
> [FunctionArgumentOperand.Type] => FunctionArgumentOperandType
> )
>
> )
>
> )
>
> [functionString] => AND()
> )
>
> [id] => 197664905835
> [type] => LOCATION_GROUPS
> [CriterionType] => LocationGroups
> [_parameterMap:Criterion:private] => Array
> (
> [Criterion.Type] => CriterionType
> )
>
> )
>
>
>
> Thanks
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/252a72cc-572b-4b1f-b451-a711ca6b2a99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get campaigns targeted location group using api

2016-06-17 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Anil,

Once you have retrieved the complete LocationGroup 

 
object using the CampaignCriterionService 
,
 
you need to decompose the object to get the LhsOperand 

 and RhsOperand 

 of 
the MatchingFunction 

 used. 
If the operand is an instance of GeoTargetOperand 
,
 
use the LocationCriterionService 

 or 
the GeoTarget table 
 to 
lookup the name of the location criterion. For other operand types, please 
refer to the respective documents for the enumerations.

For example, in your case:
TIER_1 

 represents 
top 10% of earners. 
2840 is the Criteria ID 
 for 
United States.

Regards,
Shwetha, AdWords API Team.



 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/83541791-36aa-450b-8572-73e781dee610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.