Hi Heidi, Thanks for reply. May answers: 1) Querying campaign: url = 'https://googleads.googleapis.com/v11/customers/XXXXX/googleAds:search' params = { "query": "SELECT campaign.id, campaign.name, campaign.status, metrics.gmail_saves FROM campaign WHERE campaign.id=XXX and segments.date='2022-09-16'" } and response: { "results": [ { "campaign": { "resourceName": "customers/XXX/campaigns/XXX", "status": "ENABLED", "name": "Leads-Search-1", "id": "XXX" }, "metrics": { "gmailSaves": "0" } } ], "fieldMask": "campaign.id,campaign.name,campaign.status,metrics.gmailSaves" } headers <CIMultiDictProxy('Request-Id': '*n21hVpOMk3tokttJREjZzw*', ...)>
2) Querying campaign_asset: url = 'https://googleads.googleapis.com/v11/customers/XXXX/googleAds:search' params = { "query": "SELECT asset.id, asset.name, asset.type, campaign.id, metrics.clicks FROM campaign_asset WHERE segments.date='2022-09-16' and asset.type='LEAD_FORM' and asset.id=XXXXX and campaign.id=XXXX" } and response: { "fieldMask": "asset.id,asset.name,asset.type,campaign.id,metrics.clicks" } headers <CIMultiDictProxy('Request-Id': '*McxEY-4JurabYL99z7R9bg*' ...)> Thanks in advance! On Friday, September 16, 2022 at 5:56:25 PM UTC+3 adsapi wrote: > Hi Anna, > > Thank you for reaching out to us. > > For our team to further investigate and provide appropriate > recommendations, could you please provide us with the complete API logs( > 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> > > with request-id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>) > > generated on your end and whole Google Ads UI screenshot where you can see > the data you want to retrieve in the API? > > Moving forward to this, “*How can I receive at least zeros for metrics? > They are available(zeros) if querying 'FROM campaign*” > -Please note that it is currently not possible to force return a row if > all selected metrics fields are zero. However, if there's one or more > selected metrics fields having a value that is not zero, the row should be > returned. You can refer to this documentation > <https://developers.google.com/google-ads/api/docs/reporting/zero-metrics?hl=en#rows_returned> > for > more details. > > And for this, “*They are available(zeros) if querying 'FROM campaign*” > -Could you also provide us the complete API logs(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> > > with request-id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > > ) generated on your end seeing the available(zeros) if querying 'FROM > campaign? > > You may then send the requested information via the Reply privately to > author option. If this option is not available, you may send the details > directly to our [email protected] alias instead. > > Best regards, > [image: Google Logo] > Heidi > Google Ads API Team > > > ref:_00D1U1174p._5004Q2ePL6o: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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e07d502b-1f27-4ef2-9ed4-c7b574fc1f9bn%40googlegroups.com.
