Clarification on 'topic_view' 'ad_group_criterion.topic.path' and 'ad_group.targeting_setting.target_restrictions' fields

91 views
Skip to first unread message

Oksana Sulyma

unread,
Mar 7, 2022, 11:00:55 AM3/7/22
to Google Ads API and AdWords API Forum
Hello Google Ads API support team,
I've been following this guide https://developers.google.com/google-ads/api/docs/migration/mapping?hl=en#display_topics_performance to migrate Display Topics report from Google AdWords API to Google Ads API.
I have 2 questions.
1. Criteria = ad_group_criterion.topic.path.
In Google AdWords API report we had values like "Sports", "News" for this field. Running the same request for  Google Ads API I get values like "topic":{"path":["","Sports"]}}, "topic":{"path":["","News"]}}. I wonder if it will be correct to just extract second element from path array to get what we got from Google AdWords API? Wasn't able to find documentation on topic structure.
2. IsRestrict = ad_group.targeting_setting.target_restrictions.
In Google Adwords report we got 'true' values as example, but from Google Ads I get values like 
[{"targetingDimension":"PLACEMENT","bidOnly":false},{"targetingDimension":"TOPIC","bidOnly":false},{"targetingDimension":"AUDIENCE","bidOnly":false},{"targetingDimension":"GENDER","bidOnly":true},{"targetingDimension":"AGE_RANGE","bidOnly":true},{"targetingDimension":"PARENTAL_STATUS","bidOnly":true},{"targetingDimension":"INCOME_RANGE","bidOnly":true}]
instead. 
Is there any way to get just true or false values similarly to Google Adwords? 
Thanks in advance!

Oksana Sulyma

unread,
Mar 9, 2022, 2:16:58 AM3/9/22
to Google Ads API and AdWords API Forum
Hi team! Will appreciate any info on my questions!

cv

unread,
Mar 28, 2022, 4:30:53 AM3/28/22
to Google Ads API and AdWords API Forum
I also wanting for this clarification.

Google Ads API Forum Advisor

unread,
Mar 28, 2022, 5:15:44 PM3/28/22
to chirag....@gmail.com, adwor...@googlegroups.com
Hi everyone,

Ads API uses a JSON format and we don't have CSV output. You will find the equivalents in the fields that you are seeing. Each of our Client libraries has different ways of accessing the fields, you can look at our Get Keyword Stats sample for inspiration.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ys3Bs:ref

Oksana Sulyma

unread,
Apr 1, 2022, 10:02:35 AM4/1/22
to Google Ads API and AdWords API Forum
Hi Aryeh,
I'm OK about transferring json fields to human readable, my question was regarding SPECIFIC fields. 
Please explain.
1. Criteria = ad_group_criterion.topic.path.
In Google AdWords API report we had values like "Sports", "News" for this field. Running the same request for  Google Ads API I get values like "topic":{"path":["","Sports"]}}, "topic":{"path":["","News"]}}.  Could you please explain what doesn't it mean first empty "" in "path" array? Could it be set for some topics? Any documentation link to the list of topics Google Ads serves?

2. IsRestrict = ad_group.targeting_setting.target_restrictions.
In Google Adwords report we got 'true' values as example, but from Google Ads I get values like 
[{"targetingDimension":"PLACEMENT","bidOnly":false},{"targetingDimension":"TOPIC","bidOnly":false},{"targetingDimension":"AUDIENCE","bidOnly":false},{"targetingDimension":"GENDER","bidOnly":true},{"targetingDimension":"AGE_RANGE","bidOnly":true},{"targetingDimension":"PARENTAL_STATUS","bidOnly":true},{"targetingDimension":"INCOME_RANGE","bidOnly":true}]
instead. Is there any way to get just true or false values similarly to Google Adwords? May be some other field to use? It's actually a big problem as we don't need restrictions details which take like a half of response size, but just analog of what came as IsRestrict in Adwords API version.

Looking forward to get any info on my questions. Thank you!
Reply all
Reply to author
Forward
0 new messages