topic_constant and mobile_app_category_constant invalid output?

23 views
Skip to first unread message

Nikita Samovarov

unread,
May 24, 2022, 7:48:08 AM5/24/22
to Google Ads API and AdWords API Forum
Hi all,

When I try to pull data from topic_constant and mobile_app_category_constant I see similar malformed result only with the first element in a returned array.

Resource: topic_constant
Query: SELECT topic_constant.resource_name, topic_constant.id, topic_constant.path, topic_constant.topic_constant_parent FROM topic_constant
First element in response:
{ "topic_constant": { "id": "0", "topic_constant_parent": "topicConstants/-1", "path": [ "" ] } }
Second (and other) elements in response:
{ "topic_constant": { "resource_name": "topicConstants/3", "id": "3", "path": [ "", "Arts & Entertainment" ] } }
Comment: As you can see there is no resource_name in first element, id is zero (why?)

Resource: mobile_app_category_constant
Query: SELECT mobile_app_category_constant.resource_name, mobile_app_category_constant.id, mobile_app_category_constant.name FROM mobile_app_category_constant
First element in response:
{ "mobile_app_category_constant": { "id": 0, "name": "/" } }
Second (and other) elements in response:
{ "mobile_app_category_constant": { "resource_name": "mobileAppCategoryConstants/60000", "id": 60000, "name": "Google Play" } }
Comment: As you can see there is no resource_name in first element, id is zero (why?)

----------
I am using Python Google Ads library v15.0.0 (Google Ads v10) and executing query via service.search_stream() method.
My assumption that response is malformed is because there is no resource_name
All other resources that I query do not have this behaviour.
Tested on multiple customer accounts.
I see this only with two resources, but it may also exist on others.
Other _constant resources do not have this behaviour.

My question is: Is this a bug or a valid element?

Google Ads API Forum Advisor

unread,
May 24, 2022, 9:28:50 PM5/24/22
to nikita.s...@gmail.com, adwor...@googlegroups.com

Hi Nikita,
 

Thanks for reaching out to the Google Ads API Support team.
 

With regard to your concern, so our team can better check this concern, could you provide the complete Ads API logs (request and response with request-id) to further investigation on this?
 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.


Regards,

Google Logo
Darwin
Google Ads API Team
 


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