Repository navigation
Commit 5eee32e
committed
fix: normalize page_id to string in create_ad_creative and discovery functions
Updated the handling of page_id in create_ad_creative to ensure it is coerced to a string, accommodating both string and integer inputs. Adjusted the _discover_pages_for_account function to return page_id as a string, enhancing consistency in API responses. This change improves compatibility with the Meta API, which may return page IDs as integers.1 parent 1aebb94 commit 5eee32e
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
803 | 807 | | |
804 | 808 | | |
805 | 809 | | |
| |||
1175 | 1179 | | |
1176 | 1180 | | |
1177 | 1181 | | |
1178 | | - | |
| 1182 | + | |
1179 | 1183 | | |
1180 | 1184 | | |
1181 | 1185 | | |
| |||
1193 | 1197 | | |
1194 | 1198 | | |
1195 | 1199 | | |
1196 | | - | |
| 1200 | + | |
1197 | 1201 | | |
1198 | 1202 | | |
1199 | 1203 | | |
| |||
0 commit comments