get labels data from ad_group_ad not match google ads

53 views
Skip to first unread message

刘冉

unread,
Dec 4, 2023, 12:26:39 AM12/4/23
to Google Ads API and AdWords API Forum
hello everyone , I'm a developer from Vevor company,
when we get labels list from ad_group_ad , find the result less than google ads setting :
first step get ad_group_ad data gaql:
String query = "SELECT " +
" campaign.id, " +
" campaign.name, " +
" campaign.advertising_channel_type, " +
" ad_group.id, " +
" ad_group.name, " +
" ad_group_ad.ad.id, " +
" ad_group_ad.ad.name, " +
" ad_group_ad.ad.final_urls, " +
" ad_group_ad.status, " +
" ad_group_ad.labels " +
"FROM ad_group_ad ";
then when we analysis adGroupAd.getLabelsList() find the resut less than google ads setting,

second setp get label info:
String queryLabel = "SELECT " +
" label.id, " +
" label.name, " +
" label.status, " +
" label.resource_name, " +
" label.text_label.background_color, " +
" label.text_label.description " +
" FROM label " +
" WHERE " +
" label.id IN (%s)";

our admin customerId is:6603378880 and accountId use:5538124801,can you help us,thank you !  

Google Ads API Forum Advisor

unread,
Dec 4, 2023, 2:10:01 PM12/4/23
to liu....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team. 

By reviewing your concern, I understand that while retrieving the ad_group_ad, label data you have observed discrepancies between the information displayed in the Google Ads user interface and the data retrieved through the Google Ads API. Kindly note that the Google Ads API mirrors the Google Ads UI. We would like to specify first the following when comparing the value of the Google Ads UI and the Google Ads API.
  • The segments and fields of the API and UI should be the same.
  • The date range should also be the same.
  • Comparing the API and UI at the same level as possible.
With that, please provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account where you are facing the issue.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qWSj0:ref"

Thanks,
 
Google Logo Google Ads API Team


ran liu

unread,
Dec 5, 2023, 1:16:10 AM12/5/23
to Google Ads API and AdWords API Forum
Thank you very much for your reply. We have found the reason. When the operation staff tagged account A, they tagged account B. When we pulled the label data of account A, we could not directly pull the label data of account B.

Google Ads API Forum Advisor

unread,
Dec 5, 2023, 2:18:24 PM12/5/23
to liu....@gmail.com, adwor...@googlegroups.com
Hi,

It's great to hear that you have the reason for your issue, feel free to get back to us.
Reply all
Reply to author
Forward
0 new messages