code snippet for downloading data for income range

14 views
Skip to first unread message

Harisankar Mohanty

unread,
Nov 12, 2019, 11:57:11 AM11/12/19
to AdWords API and Google Ads API Forum
Hello,

We are attempting to use the adGroupCriterion Service with either the 'get' or 'query' parameter to download data (clicks, conversions, etc) for a specific income range in an ad group. Can you provide a code snippet (preferably in PHP) that does this? 

Specifically, we are trying to use the adGroupCriterion Service to download information using the incomeRange criterion. Is this possible? Can you send us a code snippet that does this? 

If you cannot send us a code snippet specifically with the incomeRange criterion, can you send us a generic code snippet that uses the adGroupCriterion Service to download information about an ad Group? 

Thanks in advance! 

Cheers,

Google Ads API Forum Advisor Prod

unread,
Nov 13, 2019, 9:27:17 AM11/13/19
to harish....@gmail.com, adwor...@googlegroups.com
Hello Harisankar,

You have to filter the criteria type with INCOME_RANGE to get the criterion related to the income range. You can use Criteria Performance Report which provides statistics aggregated at the ad group criteria level. The sample program to download a report is here, you can modify the report query as per you need. 

If you strictly want to use AdGroup criterion service to get income range criterion then you have to change the service and selector values in this sample code used to get AdGroups.

Regards,
Sai Teja, Google Ads API Team
 

ref:_00D1U1174p._5001UJaQJj:ref
Reply all
Reply to author
Forward
0 new messages