Hi Arshdeep, If you don't mind getting campaign.resource_name instead of campaign.id you may try *campaign_asset.campaign*, which is an attribute, so it doesn't segment the metrics. SELECT metrics.impressions, *campaign_asset.campaign*, segments.asset_interaction_target.interaction_on_this_asset FROM campaign_asset
I haven't tried it myself but the validator doesn't have problems with this. You should be able to extract easily the campaign.id from its resource_name. >From the campaign_asset help I understand that asset is not segmenting but an attribute resource. Campaign and ad_group are segmenting resources there. Best regards, Zorion On Monday, February 21, 2022 at 11:49:13 AM UTC+1 arsh...@optmyzr.com wrote: > Hi there, > > I have been trying to migrate to new Api in my application. Unfortunately > for CampaignAsset (Google Ads API) resource, the > interaction_on_this_asset > <https://developers.google.com/google-ads/api/fields/v9/campaign_asset#segments.asset_interaction_target.interaction_on_this_asset> > attribute > doesn't seem to be supported with campaign > <https://developers.google.com/google-ads/api/fields/v8/campaign_asset#campaign_asset.campaign>.id. > > > I have been trying this query in query validator: SELECT > metrics.impressions,campaign.id,segments.asset_interaction_target.interaction_on_this_asset > > FROM campaign_asset > [image: screenclip.png] > > > This, earlier was supported, for example, for feed based extensions via > Placeholder > Feed Item Report > <https://developers.google.com/adwords/api/docs/appendix/reports/placeholder-feed-item-report#isselfaction> > IsSelfAction > was supported, even when segmented by CampaignId. (AdWords API) -- > > - Does that mean segmenting by campaign.id here means the row returned > (since it is segmented further by campaign) indicates data from the same > asset itself? > > - On same note I have another question. Are the rows in CampaignAsset > segmented at campaign and the asset level or just on an asset level? > > Looking forward to your response. > > Best, > Arshdeep > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/832ff5fa-e963-4039-8aee-9734f41f9cb4n%40googlegroups.com.