-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
🎉 Source Facebook Marketing: Add the option to fetch thumbnail image data. #8649
🎉 Source Facebook Marketing: Add the option to fetch thumbnail image data. #8649
Conversation
implement IncrementalUnsortedCursorStream to ticket_metrics
for ticket comments and macros
for groups, group memberships and satisfaction ratings
@misteryeo can you review the UX change this code makes? |
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 LGTM - not a blocker but I'd be curious on my comment about documentation to see if we can hyperlink as part of the config description as I imagine not everyone is familiar with the concept outlined there.
@@ -76,7 +76,9 @@ class Config: | |||
default_factory=pendulum.now, | |||
) | |||
|
|||
include_deleted: bool = Field(default=False, description="Include data from deleted campaigns, ads, and adsets.") | |||
fetch_thumbnail_images: bool = Field(default=False, description="In each Ad Creative, fetch the thumbnail_url and store the result in thumbnail_data_url") |
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.
Is there any documentation that we can link to from Facebook that demonstrates how this works?
…airbyte into marcos/test-pr-8616
…rif93/airbyte into marcos/test-pr-8622
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 @zestyping
944ad69
to
8b00071
Compare
8b00071
to
a481881
Compare
a481881
to
f2a7124
Compare
Yay thank you!
…On Fri, Dec 17, 2021 at 3:00 PM Marcos Marx ***@***.***> wrote:
Merged #8649 <#8649> into master.
—
Reply to this email directly, view it on GitHub
<#8649 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABZUNX6CF7XH3MWEEL5SLTURO6HJANCNFSM5JU7KOSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
…data. (airbytehq#8649) * feat(zendesk): Add Brands and CustomRoles * feat(zendesk): add incremental unsorted cursor stream implement IncrementalUnsortedCursorStream to ticket_metrics * feat(zendesk): use sorted cursor pagination for ticket comments and macros * feat(zendesk): use unsorted cursor stream for groups, group memberships and satisfaction ratings * fix(zendesk): use safe method to get value from nested dict * style(zendesk): reformat using gradlew * fix(zendesk): format created_at and updated_at to date-time format * feat(zendesk): add business hours schedule * bump connector version * bump dockerfile version * reset * resolve webapp files Co-authored-by: asyarif93 <[email protected]> Co-authored-by: Marcos Marx <[email protected]>
What
The Facebook ad_creatives stream contains a
thumbnail_url
field that points to a thumbnail image of the ad image or ad video. However, the URL in that field is only valid for a short time; it expires after a few days.This change allows you to optionally fetch the contents of the thumbnail image together with the ad_creatives stream. The resulting data is encoded as a
data:
URL and placed in the newthumbnail_data_url
field so you can easily use it as an image source URL.How
fetch_thumbnail_images
setting in the Facebook Marketing source config.AdCreatives
stream post-processes the retrieved record by fetching thethumbnail_url
(using therequests
library) and encodes the data as adata:
URL, which it stores in thethumbnail_data_url
field.thumbnail_data_url
field is added to the schema for the ad creatives stream, so that it can be returned in the Airbyte data. However, this field is excluded when requesting data from Facebook, because it's not a field that Facebook knows about.🚨 User Impact 🚨
There are no backward-incompatible changes; upgrading to this version of the Facebook Marketing source should have no effect on existing connections. The
fetch_thumbnail_images
setting defaults toFalse
, and the new behaviour is only enabled when the user changes the setting toTrue
.Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described here