woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
47 stars 21 forks source link

Campaign Creation: Remove Ads Audience field #2501

Open joemcgill opened 2 months ago

joemcgill commented 2 months ago

Part of https://github.com/woocommerce/google-listings-and-ads/issues/2459

Image

Today we show “Ads audience” (see screenshot below) but instead, we can remove it and target all countries selected during product feed configuration (step 2).

Acceptance Criteria

Implementation Brief

The AudienceSection component can be removed from the PaidAdsSetupSections component. Update the PaidAdsSetupSections component so that it initializes the paidAds state with targetAudience data that was saved in step 2. We can probably use the getTargetAudience selector to get this data, but will need to make sure that it then gets formatted in a way that is expected when the form is submitted.

Test Coverage

Update the E2E tests for tests/e2e/specs/setup-mc/step-4-complete-campaign.test.js to remove tests related to the audience field.

eason9487 commented 2 months ago
  1. Are there any side effects that we would need to be aware of when using target audience data from MC for the Ads campaign?

I think there shouldn't be any side effects because the target audiences from MC are originally the default value when the starting campaign creation.

eason9487 commented 1 month ago

There is a code conflict so I moved this ticket to the In Progress status. I believe the PR won't need another round of code reviews after resolving the code conflict.

asvinb commented 1 month ago

Thanks @eason9487 . Merge conflicts fixed. As per your comment, assigning task to @fblascogarma for UAT.