Repository navigation
feat(ads): pixels, conversions API and custom conversions - #32
Merged
Merged
Conversation
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
New
fopost ads trackinggroup over the Go SDK's ads tracking methods (fopost-gobranchfeature/ads-tracking):pixels list · get · create · stats · match-quality(get --codeandcreateprint the install script)custom-conversions list · create · delete(deleteconfirms unless--yes)conversions list(recent batches) andconversions send, which reads a JSON array of events from--events <path>or--events -(stdin) and sends it once per required--idempotency-key, sent as theIdempotency-Keyheader viaAds.SendConversionsEvery pixel command takes
--connectionand--ad-account;--workspacestays the root flag. README and CHANGELOG (Unreleased) updated. No version bump, no tag.Tests
Run locally with a temporary
replace github.com/fopost/fopost-go => <fopost-go feature/ads-tracking worktree>ingo.mod(not committed):go build ./...okgo test ./...ok (newinternal/cmd/ads_tracking_test.go: idempotency header is sent and stdin events travel, missing key exits 2 without reaching the API, pixel read is scoped by the three query params, custom conversion create sends the rule and default value)go vet ./...ok,gofmt -l .cleanOwed before merge
go.modto the nextfopost-gotag that includesads_tracking.go(Ads.SendConversions, pixels, custom conversions). Until then CI will not compile, sincego.modstill points atv0.3.0.