Hi Mattia, Thanks for the feedback this clears up my questions.
Just a suggestion, I find this language "customer_asset will return only the assets that have been linked directly to the customer account" very helpful and not clearly illustrated in the documentation. I think if you added this to the customer_asset, campaign_asset and ad_group_asset pages it would be very helpful. Thanks, Liam On Monday, November 27, 2023 at 6:23:14 AM UTC-5 Google Ads API Forum Advisor wrote: > Hello Liam, > > My name is Mattia and I will be helping with your support case today. > > I understand that you would like to retrieve data for all the assets > belonging to a customer account: to do so, you can query the asset > <https://developers.google.com/google-ads/api/reference/rpc/v15/Asset> > resource > like this: > > select asset.id, asset.resource_name from asset where asset.id = > '63600410502' > > As described in this guide > <https://developers.google.com/google-ads/api/docs/assets/overview>, the > customer_asset and campaign_asset give you details, respectively, about the > association between a customer and an asset and the association between a > campaign and an asset; this means that customer_asset will return only the > assets that have been linked directly to the customer account, while > campaign_asset will return only the assets that have been linked directly > to a campaign. > > Note also that the asset resource does not expose any metrics, because we > don't provide metrics reporting at the asset level: if you want to obtain > metrics for assets, the smallest granularity you can obtain is querying for > metrics at the asset group level, by querying the asset_group > <https://https://developers.google.com/google-ads/api/fields/v15/asset_group> > resource. > > Hope this helps, > Mattia Tommasone > Google Ads API team > > ref:!00D1U01174p.!5004Q02qUDsh:ref > -- *Mise en garde concernant la confidentialité*: Le présent message, comprenant tout fichier qui y est joint, est envoyé à l'intention exclusive de son destinataire; il est de nature confidentielle et peut constituer une information protégée par le secret professionnel. Si vous n'êtes pas le destinataire, nous vous avisons que toute impression, copie, distribution ou autre utilisation de ce message est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur par retour de courriel et supprimer le courriel. Merci! *Confidentiality Warning*: This message, including any attachment, is sent only for the use of the intended recipient; it is confidential and may constitute privileged information. If you are not the intended recipient, you are hereby notified that any printing, copying, distribution or other use of this message is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email, and delete it. Thank you! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/b4f4e942-8d45-4ba9-87e6-c64ece5f86a1n%40googlegroups.com.