Get metada of object, RESOURCE, ATTRIBUTE, METRIC or SEGMENT
Source:R/gads_get_metadata.R
gads_get_metadata.Rd
Get metada of object, RESOURCE, ATTRIBUTE, METRIC or SEGMENT
Value
tibble with object metadata important arrays in result:
- attributeResources
Resources that can be using in
resource
argument ingads_get_report
.- metrics
Metrics that are available to be selected with the resource in the
field
argument ingads_get_report
. Only populated for fields where the category is RESOURCE.- segments
Segment keys that can be selected with the resource in the
field
argument ingads_get_report
. These segment the metrics specified in the query. Only populated for fields where the category is RESOURCE.- selectableWith
Fields that can be selected alongside a given field, when not in the FROM clause. This attribute is only relevant when identifying resources or segments that are able to be selected in a query where they are not included by the resource in the FROM clause. As an example, if we are selecting
ad_group.id
andsegments.date
fromad_group
, and we want to include attributes fromcampaign
, we would need to check thatsegments.date
is in the selectableWith attribute for campaign, since it's being selected alongside the existingsegments.date
field.