-
Notifications
You must be signed in to change notification settings - Fork 22
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
Upgrade Linkedin API version from 202304 to 202403 #69
Conversation
* added video-ads implementation * fixed pylint issues * added handler for missing permission, removed test for skip condition * updated message * fstring -> format for 3.6 compatibility
CHANGELOG.md
Outdated
|
||
- **Video Ads Stream** | ||
- Added new fields ([#71](https://github.com/singer-io/tap-linkedin-ads/pull/71)) | ||
- Requires scope - `r_organization_social` to sync the records. |
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.
Scope requirements should be mentioned in README.md and not in CHANGELOG.md unless you have made changes on the tap side; specific to the scope.
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.
done
tap_linkedin_ads/streams.py
Outdated
return super().sync_endpoint(*args, **kwargs) | ||
except Exception as error: | ||
if "Not enough permissions to access: partnerApiPostsExternal" in str(error): | ||
LOGGER.info("Access to the video-ads API is denied due to insufficient permissions. Please reauthenticate or verify the required permissions.") |
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.
Using LOGGER.warning seems more suitable at the place of LOGGER.info
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.
done
"q": "search", | ||
"sort.field": "ID", | ||
"sort.order": "ASCENDING" | ||
"q": "search" |
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 the data coming in sorted order, by default, in the new API version?
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.
yes, as mentioned in docs
tap_linkedin_ads/streams.py
Outdated
# adding pivot and pivot_value to make it compatible with the previous tap version 2.2.0 | ||
element['pivot'] = pivot | ||
element["pivot_value"] = temp_pivotValue |
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 making tap compatible with the previous version 2.2.0 really needed? Because the previous tap version is already deprecated.
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.
removed 2.2.0 from comments
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.
Not a blocker to merge this PR but should be considered removing the pivot and pivotValue occurrences if it is not supported anymore.
We can think of it in the future, currently, the fields - pivot and pivotValue are set to automatic. This PR targets to update the API version on priority. |
@rdeshmukh15 there are few more deprecations with video_ads stream too, but since the api deprecation deadline is very near, we don't want to remove any schema objects thus avoiding a major version bump. Can you please approve this PR? |
Description of change
API Updates
202304
(#69)campaign_groups
,campaigns
,creatives
Pagination Enhancements
accounts
,campaign_groups
,campaigns
,creatives
API Query Param Adjustments
pivot
andpivotValue
fromfields
query parameters in Analytics API requestsVideo Ads Stream
r_organization_social
to sync the records.change_audit_stamps
in new endpointManual QA Steps
Stream Verification
Pagination Testing
Data Consistency Check
Test Suite Maintenance
Risks
Rollback steps