Query returns duplicate records

57 views
Skip to first unread message

Qaiser Javed

unread,
Jun 28, 2022, 4:09:40 AM6/28/22
to Google Ads API and AdWords API Forum
Hi members,

Facing a problem, my query attached herewith returns duplicate records.

Please help "Why the query in attachment returns two records against a campaign?"

Thanks
GAQL Query.txt

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 5:25:58 AM6/28/22
to qasj...@gmail.com, adwor...@googlegroups.com

Hi Qaiser,

Thank you for reaching out to our API support team.

Regarding your concern about "returns duplicate records" could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cDvqk:ref

Jim Vaillancourt

unread,
Jun 28, 2022, 9:24:32 AM6/28/22
to Google Ads API and AdWords API Forum
It looks like you are segmenting by network (Google Search vs Search Partners). Since each campaign can show on both networks there are two records for each campaign. If you remove the "segments.ad_network_type" there should only be one record per campaign.

Google Ads API Forum Advisor

unread,
Jun 28, 2022, 1:23:53 PM6/28/22
to j...@lionhurst.com, adwor...@googlegroups.com
Hi Jim,

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

You may refer below for the definition and difference of SEARCH and SEARCH_PARTNERS values :

Search (network)  
Search partners

The SearchNetwork enables a campaign to target the Google Partner Network. This is only available to Google Partners.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


 

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