Hi ,

I am trying to generate a report capturing gender, age  For some reason all 
are being displayed as 0. 

I am using *google ads API* and trying the same in *python*. Can anyone 
quickly point out what is going wrong ?


Following is the query :

query2 = (

' SELECT campaign.name, campaign.id, campaign.start_date, campaign.end_date,  '
' campaign_criterion.gender.type,campaign_criterion.age_range.type, 
campaign_criterion.proximity.radius '
' FROM campaign_criterion '
' LIMIT 100')


printing it as follows :

print(
    ' Campaign name :  "%s"   , Campaign id : "%s"      ,  Campaign start date 
: "%s" , Campaign end date : "%s" '
    ' Gender_type     : "%s"  , Age_range_type         : "%s" , Radius  : "%s" '
   % (campaign.name.value, campaign.id.value, campaign.start_date.value, 
campaign.end_date.value,
       campcrit.gender.type, campcrit.age_range.type, 
campcrit.proximity.radius.value))



I think since they are ones with a set of response values as in age ranges and 
Gendertypes, they need to be handled differently while reading the response. 


Can anyone quickly point out the mistake and correct me please ?


Thanks and Regards,

Vinutha Nayak

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c6a042b7-83a6-41b9-8734-b30e486fdcd0%40googlegroups.com.

Reply via email to