Skip to content

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.

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.

3 participants