You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lifetime Budget update fails because it does not wrap the CampaignUpdateRequest in a list like the Daily Budget update.
If a Life time budget update is attempted we receive the following error: Invalid type for variable 'campaign_update_request'. Required value type is list and passed type was CampaignUpdateRequest at ['campaign_update_request']
To Reproduce
Steps to reproduce the behavior:
The model/class with an issue is pinterest/ads/Campaigns.py
The function with an issue is set_lifetime_budget(self, new_spend_cap:int)
The arguments passed to the model/function are any positive integer value
The error thrown is 'Invalid type for variable 'campaign_update_request'. Required value type is list and passed type was CampaignUpdateRequest at ['campaign_update_request']
Expected behavior
I would expect the CampaignUpdateRequest object to be wrapped in a list object like the set_daily_budget function in the same class.
Screenshots
Additional Details (please complete the following information):
OS and Version: MacOS and Windows
SDK Version [all versions]
Additional Context
n/a
The text was updated successfully, but these errors were encountered:
Describe the bug
The Lifetime Budget update fails because it does not wrap the CampaignUpdateRequest in a list like the Daily Budget update.
If a Life time budget update is attempted we receive the following error:
Invalid type for variable 'campaign_update_request'. Required value type is list and passed type was CampaignUpdateRequest at ['campaign_update_request']
To Reproduce
Steps to reproduce the behavior:
Invalid type for variable 'campaign_update_request'. Required value type is list and passed type was CampaignUpdateRequest at ['campaign_update_request']
Expected behavior
I would expect the CampaignUpdateRequest object to be wrapped in a list object like the set_daily_budget function in the same class.
Screenshots
Additional Details (please complete the following information):
Additional Context
n/a
The text was updated successfully, but these errors were encountered: