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

targeting_optimization_types has wrong type #47

Open
5 tasks done
kromash opened this issue Aug 4, 2022 · 2 comments
Open
5 tasks done

targeting_optimization_types has wrong type #47

kromash opened this issue Aug 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@kromash
Copy link

kromash commented Aug 4, 2022

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Node Version: 16.16.0
  • NPM Version: 8.11.0

Goals

What do you want to achieve?

Get correct type for targeting_optimization_types

Expected Results

What do you expect to happen?

According to documentation, targeting_optimization_types has type listKeyValue:string,int32, so type in codegen specs should be list

There are 3 objects that uses this field:

  1. AdSet https://developers.facebook.com/docs/marketing-api/reference/ad-campaign/
  2. AdAccountDeliveryEstimate (no documentation found)
  3. AdCampaignDeliveryEstimate https://developers.facebook.com/docs/marketing-api/reference/ad-campaign-delivery-estimate/

Actual Results

What actually happened?

Current type for targeting_optimization_types is map<string, int>

Because of that, targeting_optimization_types could not be mapped properly. For example, one issue was reported in python sdk project link

Code Samples & Details

Please provide a code sample, as well as any additional details, to help us track down the issue. If you can provide a link to a test project that allows us to reproduce the issue, this helps us immensely in both the speed and quality of the fix.

        {
            "name": "targeting_optimization_types",
            "type": "map<string, int>"
        }

should be changed to:

        {
            "name": "targeting_optimization_types",
            "type": "list<map>"
        }
@kromash kromash added the bug Something isn't working label Aug 4, 2022
@kromash
Copy link
Author

kromash commented Aug 4, 2022

I see that API spec jsons are auto-generated. Should I create pull request with type fix or it should be fixed elsewhere?

@kromash kromash closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2022
@kromash kromash reopened this Aug 4, 2022
@stcheng
Copy link
Contributor

stcheng commented Apr 13, 2023

thanks for the pull request, we're aware of this issue. we'll try to address this asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants