Region value is not being returned through SDK
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
No source file or test is named. Start by comparing the SDK request and response handling with the provided curl request for the Campaign Insights region breakdown; done means the SDK can request region and returns region values without the invalid-fields error, with coverage for the reported parameters.
Written by the indexing model from the issue text.
Description
Which SDK version are you using?
v8.0
What's the issue?
Apparently, the API seems to be inconsistent between requests to different breakdowns. Specifically working with region.
Campaign Insights supports region, but that value is not being returned in the results.
This only happens using the SDK. Through api, it works.
Steps/Sample code to reproduce the issue
Requests params:
"level" -> "campaign"
"time_range" -> "{'since':'2020-12-04','until':'2020-12-10'}"
"breakdowns" -> "region"
"action_breakdowns" -> "action_type"
"fields" -> "account_name,campaign_id,campaign_name,impressions,clicks,actions,action_values,spend,date_start,buying_type,objective,reach,account_id,region"
"filtering" -> "[{'field':'ad.impressions','operator':'GREATER_THAN','value':-1}]"
"time_increment" -> "1"
Response message:
(#100) region is not valid for fields param. please check https://developers.facebook.com/docs/marketing-api/reference/ads-insights/ for all valid values
If the region field is removed from "fields", the result is correct but the region value is not present
Observed Results:
- What happened? This could be a description, log output, etc.
Region value is not being returned through SDK.
Expected Results:
- What did you expect to happen?
Using API:
Request:
curl -G \
-d "breakdowns=age,gender,region" \
-d "fields=impressions,region" \
-d "appsecret_proof=APP_SECRET" \
-d "access_token=TOKEN" \
"https://graph.facebook.com/v9.0/{CAMPAIGN}/insights"
Response:
{
"data": [{
"impressions": "1326",
"region": "Alabama"
}, {
"impressions": "194",
"region": "Alaska"
}, {
"impressions": "1113",
"region": "Arizona"
}, {
"impressions": "758",
"region": "Arkansas"
}, {
"impressions": "3074",
"region": "California"
}....
]
- Dominant language
- Java
- Stars
- 472
- Forks
- 343
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebook/facebook-java-business-sdk
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
facebook/facebook-java-business-sdk#499 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
facebook/facebook-java-business-sdk#493 · 3 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in facebook/facebook-java-business-sdk
Similar issues
-
[destination-snowflake] Custom domains rejected unlike source connectionsPossibly taken @kuza55 claimed this today. Openautoteam community connectors/destination/snowflake team/use
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area-dashboard
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
component/operate kind/feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Forge coverage prompts carry text the agent cannot act onPossibly taken @graalvmbot claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
oracle/graalvm-reachability-metadata#10572 ·
Maintainers usually reply within 1 day
-
[CI] Core CI doesn't run for changes to amoro-format-lance (and amoro-web)Possibly taken @MarkAlex1234 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days