-
Notifications
You must be signed in to change notification settings - Fork 21
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
Onboarding: Connect to existing Ads account in Google Accounts Card #2596
Comments
@joemcgill I've added the IB. Can you kindly review and let me know what you think please? |
Thanks for adding the IB details, @asvinb. A few points of feedback, starting with your definition questions:
Yes, while we could automatically connect the account, we wanted to give the user the opportunity to confirm that the existing account is the one they wanted to connect to this store. For example, they could have an existing account for some other purpose and would prefer to create a new one for this purpose.
Good observation. We probably need a new issue to handle this as a follow up to #2567, which hanldes this similarly to #2582.
I don't think we need to disable connecting an Ads account while the MC creation step in in process since currently these two accounts can be set up independently of each other. Also, to clarify the AC, this issue should have no responsibility for creating or connecting an MC account and should only be responsible for providing the UI and front end logic required to connect an existing Ads account. The only related change that this issue should take care of is updating the text in the top of the card during creation so it no longer reads, "you don't already have an Ads account...", since that would not be true when this UI is being shown. |
Also, wanted to point out for clarity that the requirements creating a new Ads account from the new connect component will be handled by #2603. |
@joemcgill |
Agreed. We don't necessarily need to include that in the scope of this ticket.
I really want to keep that ticket focused on the initial account creation and not the two use cases where we are only creating one account, but we can create a separate follow-up issue to handle these cases if you think doing so here is too confusing. Mainly just want to make sure we remember to update that text. Additionally I've made the following update:
This should check the
Most of this will already be handled in #2567, so we should only have to update the logic so that the text changes to indicate that we are automatically creating an MC account and not an MC and Ads account. |
@eason9487 can you review the approach and flag any concerns you have prior to us starting this work? For this and other tasks that are a subtask of #2509, this only addresses a subset of requirements in order to keep the scope of each PR focused. It may be helpful to review the whole epic again if the way we've broken this up is unclear. |
If there is a possible race condition on the DB/API data updates during linking Google Ads and Merchant accounts, it's suggested to disable the UI related to connecting or creating Google Ads account. |
@joemcgill @eason9487 IB has been added to look for any race conditions. This is unlikely but worth mentioning it in the IB. |
Part of #2509
After connecting a Google account, we will provide the UI to allow the merchant to connenct to an existing Ads account.
Acceptance Criteria
Implementation Brief
GoogleComboAccountCard
created in Onboarding: Create New Google Combo Accounts Card #2566.hasGoogleAdsConnection
prop returned by theuseGoogleAdsAccount
hook, but only after the Google account is connected, otherwise that property won't exist.connect-ads/index.js
in the same folder asGoogleComboAccountCard
which will house theConnectAds
component.js/src/components/google-ads-account-card/connect-ads/index.js
to display the data (not the UI) and styled as per the designs.Section.Card.Body
for the layout.AppSelectControl
when only one account is available #2593.handleConnectClick
injs/src/components/google-ads-account-card/connect-ads/index.js
.ConnectAds
withinGoogleComboAccountCard
.useExistingGoogleAdsAccounts
hook.GoogleComboAccountCard
should automatically create one.GoogleComboAccountCard
as per the designs indicating to the user that an account is being created for them.Test Coverage
Definition Questions
ReclaimUrlCard
. However, we can't reuse the existing one (js/src/components/google-mc-account-card/reclaim-url-card/index.js
) due to differences in the layout (e.g., logo, spacing, etc.).The text was updated successfully, but these errors were encountered: