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

fix: enhancement and version upgrade of google adwords enhanced conversion #2947

Closed
wants to merge 5 commits into from

Conversation

shrouti1507
Copy link
Contributor

@shrouti1507 shrouti1507 commented Dec 21, 2023

What are the changes introduced in this PR?

resolves INT-976

This PR is divided into destination level changes

Google has got a new API version 15. We are updating API version of

Google adwords enhanced conversion

Also we are adding support of the new fields added by google for this above destination

Doc references :

enhanced conversion --> adding job_id https://developers.google.com/google-ads/api/rest/reference/rest/v15/customers/uploadConversionAdjustments#ConversionAdjustment

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Type of change

enhancement

  • Existing capabilities/behavior
    Same

  • New capabilities/behavior
    added job Id value for conversions object.

If the pull request is a new feature,

Any technical or performance related pointers to consider with the change?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

If the PR has changes in more than 10 files, please mention why the changes were not split into multiple PRs.

N/A

If multiple linear tasks are associated with the PR changes, please elaborate on the reason:

N/A


Developer checklist

  • No breaking changes are being introduced.

  • Are all related docs linked with the PR?

  • Are all changes manually tested?

  • Does this change require any documentation changes?

  • Are relevant unit and component test-cases added?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@shrouti1507 shrouti1507 added the enhancement New feature or request label Dec 21, 2023
@shrouti1507 shrouti1507 self-assigned this Dec 21, 2023
@shrouti1507 shrouti1507 requested review from a team and sivashanmukh as code owners December 21, 2023 12:26
Copy link
Contributor

coderabbitai bot commented Dec 21, 2023

Important

Auto Review Skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository.

To trigger a single review, invoke the @coderabbitai review command.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid.
    • @coderabbitai read the files in the src/scheduler package and generate README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@shrouti1507 shrouti1507 changed the title fix: enhancement and version upgrade of gaec fix: enhancement and version upgrade of google adwords enhanced conversion Dec 21, 2023
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8bf56cc) 87.19% compared to head (d50521b) 87.19%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2947   +/-   ##
========================================
  Coverage    87.19%   87.19%           
========================================
  Files          860      860           
  Lines        29326    29327    +1     
  Branches      6845     6845           
========================================
+ Hits         25570    25571    +1     
  Misses        3410     3410           
  Partials       346      346           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

koladilip
koladilip previously approved these changes Dec 21, 2023
ItsSudip
ItsSudip previously approved these changes Dec 26, 2023
@shrouti1507 shrouti1507 dismissed stale reviews from ItsSudip and koladilip via 74a2be7 January 4, 2024 05:54
@shrouti1507 shrouti1507 requested review from ItsSudip, koladilip and krishna2020 and removed request for ujjwal-ab January 4, 2024 05:54
@@ -77,6 +77,8 @@ const processTrackEvent = async (metadata, message, destination) => {
const payload = constructPayload(message, updatedMapping);

payload.partialFailure = true;
// ref: https://developers.google.com/google-ads/api/docs/release-notes#:~:text=Added%20job_id%20as,UploadConversionAdjustmentsRequest
payload.jobId = metadata.jobId;
Copy link
Member

Choose a reason for hiding this comment

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

Can't we support properties.jobId as well? Some customer might try to provide jobId from their own.
CC @shrouti1507 @krishna2020

Copy link
Collaborator

@krishna2020 krishna2020 Jan 4, 2024

Choose a reason for hiding this comment

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

can you tell what's the use-case of customer for providing jobId when destination has ability to generate jobId in case of null ?

Copy link
Member

Choose a reason for hiding this comment

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

Customer can maintain some unique numbers on their database and send that as jobId.

Copy link

sonarqubecloud bot commented Jan 4, 2024

@@ -77,6 +77,8 @@ const processTrackEvent = async (metadata, message, destination) => {
const payload = constructPayload(message, updatedMapping);

payload.partialFailure = true;
// ref: https://developers.google.com/google-ads/api/docs/release-notes#:~:text=Added%20job_id%20as,UploadConversionAdjustmentsRequest
payload.jobId = metadata.jobId;
Copy link
Collaborator

@krishna2020 krishna2020 Jan 4, 2024

Choose a reason for hiding this comment

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

@shrouti1507 There's no point of introducing jobId in this PR without handling partial failure feature

@krishna2020
Copy link
Collaborator

Restrict the PR only to version upgrade changes & create separate task for jobId field support

@shrouti1507
Copy link
Contributor Author

for now we are just adding support for v15 at #2966

@shrouti1507 shrouti1507 closed this Jan 4, 2024
@devops-github-rudderstack devops-github-rudderstack deleted the enhance.gaec branch April 5, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants