i cant migrate labels and settings in adgroup resource

21 views
Skip to first unread message

Dario Condori

unread,
Apr 3, 2022, 3:45:22 PM4/3/22
to Google Ads API and AdWords API Forum
good night,
I have the following query in Adword's AdgroupService service.
    page_query = "SELECT Id, Name, Status, Settings, Labels ORDER BY Name"
    response = ad_group_srv.query(page_query)
My questions are as follows.
1) I can't find the field corresponding to "setting fields" in google ads.
2) How can I get the labels json that I got in adwords in a unique request?
best regards,
Dario Orlando Condori

Google Ads API Forum Advisor

unread,
Apr 4, 2022, 4:49:34 AM4/4/22
to dario.co...@snoopconsulting.com, adwor...@googlegroups.com

Hi Dario,

Thanks for reaching out to the Google Ads API Forum.

Kindly see below responses to your queries:



1) I can't find the field corresponding to "setting fields" in google ads.

>>  You may refer to this guide for AdWords API reports to the corresponding Google Ads API resources.



2) How can I get the labels json that I got in adwords in a unique request?

>> You may use the ad_group report to get the resource names of labels attached to this ad group using ad_group.labels fields​​. To get the complete details, you may use the label report. Also, I suggest you use the Query builder to construct your GAQL.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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