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.
On Tuesday, June 28, 2022 at 4:25:58 AM UTC-5 adsapi wrote: > 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 > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > and response > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > logs, > with the request-id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#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 > <https://developers.google.com/google-ads/api/docs/client-libs?hl=en>.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, > [image: Google Logo] > Anthony Cyril > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cDvqk:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/eade2031-d6a8-4d5d-b4e1-8cc0b61c5491n%40googlegroups.com.