Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add predefined reports to the curl examples repo #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ikuleshov
Copy link
Contributor

No description provided.

@ikuleshov ikuleshov requested a review from jradcliff September 26, 2024 09:17
predefined_reports/README.md Outdated Show resolved Hide resolved
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
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

predefined_reports/run.sh Outdated Show resolved Hide resolved
echo "Error: Failed to execute '$filename'."
exit 1
fi
Use code with caution.
Copy link
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
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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants