Skip to content
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

Replace hardcoded additional_owners param with ACCOUNT_ID setup var #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hiribarne
Copy link

I noticed the hardcoded userid in the additional_owners parameter in this example. I think it should be the ACCOUNT_ID. Please review. Thanks

@CLAassistant
Copy link

CLAassistant commented Jul 28, 2020

CLA assistant check
All committers have signed the CLA.

@@ -17,7 +17,7 @@
# https://developer.twitter.com/en/docs/ads/creatives/guides/media-library
resource = '/1.1/media/upload.json'
params = {
'additional_owners': '756201191646691328',
'additional_owners': ACCOUNT_ID,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch that this was hardcoded. This field represent the user ID of another user that should have access to use this asset. So this field is only necessary when the credentials that are uploading the asset are different from a user to an ads account that will use the asset. In this example, it isn't clear how to provide an additional_owners value that would make sense.

It might be best to comment out this parameter but add a note that this should be set for another user ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants