-
Notifications
You must be signed in to change notification settings - Fork 22
[GOOWOO-180] Enhance plugin architecture to support YouTube Videos #2986
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
base: feature/GOOWOO-172-pmax-assets-improvements
Are you sure you want to change the base?
[GOOWOO-180] Enhance plugin architecture to support YouTube Videos #2986
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/GOOWOO-172-pmax-assets-improvements #2986 +/- ##
===============================================================================
- Coverage 66.2% 66.2% -0.1%
- Complexity 4814 4823 +9
===============================================================================
Files 490 491 +1
Lines 20446 20522 +76
===============================================================================
+ Hits 13542 13579 +37
- Misses 6904 6943 +39
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
This looks like it will do the trick, @ankitrox. Approving with one suggestion.
@@ -107,7 +108,7 @@ public function get_assets_by_asset_group_ids( array $asset_groups_ids, array $f | |||
$asset_group_assets = []; | |||
$asset_results = ( new AdsAssetGroupAssetQuery() ) | |||
->set_client( $this->client, $this->options->get_ads_id() ) | |||
->add_columns( [ 'asset_group.id' ] ) | |||
->add_columns( [ 'asset_group.id', 'asset.youtube_video_asset.youtube_video_id' ] ) |
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.
Rather than adding this column to both places where the AdsAssetGroupAssetQuery
is used, consider adding it as a default column, here:
$this->columns( [ 'asset.id', 'asset.name', 'asset.type', 'asset.text_asset.text', 'asset.image_asset.full_size.url', 'asset.call_to_action_asset.call_to_action', 'asset_group_asset.field_type' ] ); |
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.
Thank you @joemcgill , this looks like a proper place to add this new column. Made that change as per suggestion.
'asset_group.id', | ||
'asset_group.path1', | ||
'asset_group.path2', | ||
'asset.youtube_video_asset.youtube_video_id', |
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.
Same as above
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.
Thanks, @ankitrox
Changes proposed in this Pull Request:
Closes https://linear.app/a8c/issue/GOOWOO-180/enhance-plugin-architecture-to-support-youtube-videos
Replace this with a good description of your changes & reasoning.
Screenshots:
Detailed test instructions
Create a campaign in Dashboard by clicking
Add campaign
button. You can also create a campaign directly in Google ads account for this testing.Add the asset using
Create
button in Google ads dashboard. Create a video asset by following all the given guidelines.Create an asset group and add that video asset to the asset group. Note that it takes some time ~20 minutes to get that video eligible in the asset group.
Import the postman collection added in slack pinned folder. Adjust the environment variables for
GLA
environment.Use
GET:ads-asset-groups
collection to retrieve the assets for that asset groups, you should be able to see theyoutube_video
there.Use
All Endpoints
collection and ensure that forwc/gla/ads/campaigns/asset-group/{id}
endpoint, forfield_type
argument,youtube_video
is available in schema.Additional details:
Changelog entry