-
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
Setup Paid Ads Campaign Step 1 Account Connection #301
Conversation
This is so that it can be reused in Setup Ads flow.
Conflicts: js/src/setup-ads/ads-stepper/setup-accounts/index.js
js/src/setup-ads/ads-stepper/setup-accounts/google-ads-account-section/terms-modal/index.js
Outdated
Show resolved
Hide resolved
js/src/setup-ads/ads-stepper/setup-accounts/google-ads-account-section/terms-modal/index.js
Outdated
Show resolved
Hide resolved
js/src/setup-ads/ads-stepper/setup-accounts/google-ads-account-section/create-account-button.js
Outdated
Show resolved
Hide resolved
.gla-setup-stepper { | ||
.woocommerce-stepper__steps { | ||
align-items: center; | ||
justify-content: center; | ||
height: 64px; | ||
background-color: #fff; | ||
box-shadow: inset 0 -1px 0 #ccc; | ||
margin-bottom: 0; | ||
|
||
.woocommerce-stepper__step-divider { | ||
margin-top: 0; | ||
align-self: auto; | ||
max-width: 48px; | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are duplicated styling to setup-mc/setup-stepper/index.scss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'm aware of that 😄 👍 which is why I added a comment in js/src/setup-ads/ads-stepper/index.js that we should refactor it some time later after this PR gets merged. I think @tomalec is / was also making changes to the setup stepper and we can de-dupe it later when everything is stable.
I'm not sure whether it's something to report here or in a separate issue, but when I was testing this page with a Google account, linked with MC account, but without any Ads account, I was getting quite an enigmatic result:
There was a toast that disappeared with: The problem was solved once I go to https://ads.google.com/intl/pl_pl/getstarted/? and created an Ads account associated with my test user G account. However, if I was a new-coming merchant I doubt I would guess what to do. |
That's been tracked here: #291 |
Add Paid Campaign | ||
</Button> | ||
{ __( 'Add Paid Campaign', 'google-listings-and-ads' ) } | ||
</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks fine for me, accessed from https://gla1.test/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard (I changed to "Programs", thanks for the heads up):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomalec , thanks for sharing your screenshot. That is weird. Here's my screenshot, based on current trunk branch:
The thing is, within my "app-table-card" div, I have woocommerce-card
but you have components-card
. I look into the code in js/src/components/app-table-card/index.js
, it should render WooCommerce Card. Do you have any local changes in your machine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same results as Tomek. 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some clues but have no idea how to fix that in the right way. When the WooCommerce Admin is activated in the Plugins page, it would load v1.9.0 of @woocommerce/components
. Otherwise, it would load v1.8.3. And you can see they import different <Card> component sources. 😂
v1.9.0
import {
Card,
// ...emit
} from '@wordpress/components';
v1.8.3
import Card from '../card';
@ecgan I believe once you activate the WooCommerce Admin plugin, you will see the same results. 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More precisely, the exactly loading version of @woocommerce/components
should depend on the dependency of installed versions of the WooCommerce and WooCommerce Admin plugins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eason9487 , thanks so much, that's awesome troubleshooting! 😃 👍
@ecgan I believe once you activate the WooCommerce Admin plugin, you will see the same results. 😆
I do have WC Admin activated, but it is version 1.8.0 😂
I created an issue to track this: #320
Co-authored-by: Tomek Wytrębowicz <[email protected]>
Nice @ecgan I was able to run through and connect an existing account 👍 One thing I noticed is I see an error message flash up briefly on the initial load |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from flashing error, tests and looks good to me.
https://github.com/woocommerce/google-listings-and-ads/pull/301/files#r590264569 seems like a candidate for another PR.
Conflicts: js/src/components/stepper/top-bar/index.js
I created a separate issue to track the flashing error here: #318 |
Changes proposed in this Pull Request:
Closes #167 .
This PR provides the Step 1 in Setup Paid Ads Campaign. You will be able to create new Google Ads account or link an existing Google Ads account.
Screenshots:
Detailed test instructions: