Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Add predefined reports to the curl examples repo - #1

Open
ikuleshov wants to merge 3 commits into
googleanalytics:mainfrom
ikuleshov:main
Open

ikuleshov wants to merge 3 commits into
googleanalytics:mainfrom
ikuleshov:main

Conversation

@ikuleshov

Copy link
Copy Markdown
Contributor

No description provided.

@ikuleshov
ikuleshov requested a review from jradcliff September 26, 2024 09:17
Comment thread predefined_reports/README.md Outdated
curl -X POST \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
https://analyticsdata.googleapis.com/v1beta/properties/$GA_PROPERTY_ID:runReport -d @traffic-acquisition-session-primary-channel-group.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
https://analyticsdata.googleapis.com/v1beta/properties/$GA_PROPERTY_ID:runReport -d @traffic-acquisition-session-primary-channel-group.json
https://analyticsdata.googleapis.com/v1beta/properties/${GA_PROPERTY_ID}:runReport -d @traffic-acquisition-session-primary-channel-group.json

Comment thread predefined_reports/run.sh Outdated
Comment thread predefined_reports/run.sh
echo "Error: Failed to execute '$filename'."
exit 1
fi
Use code with caution.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be a comment?

Comment on lines +15 to +17
To run a query in your browser, open the [API Explorer](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport?apix=true)
in your browser, populate the **property** field with your [property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id)
and copy the request body to the corresponding field in the API Explorer dialog, click **Execute**.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To run a query in your browser, open the [API Explorer](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport?apix=true)
in your browser, populate the **property** field with your [property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id)
and copy the request body to the corresponding field in the API Explorer dialog, click **Execute**.
To run a query in your browser, open the [API Explorer](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport?apix=true)
in your browser, populate the **property** field with your [property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id),
copy the request body to the corresponding field in the API Explorer dialog,
and click **Execute**.

ikuleshov and others added 2 commits September 30, 2024 10:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants