We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
when trying to get reachestimate with an AdAccount object, build_objects_from_response can't build the object from the response.
The problem seems to be that the response includes 'data' as a dict, and not as a list. (like in the reachestimate response of AdGroups)
AdAccount response: { "users": 3300, "bid_estimations": [ { "unsupported": false, "location": 3, "cpa_min": 110, "cpa_median": 202, "cpa_max": 312, "cpc_min": 31, "cpc_median": 57, "cpc_max": 87, "cpm_min": 32, "cpm_median": 92, "cpm_max": 187 } ], "estimate_ready": true, "data": { "users": 3300, "bid_estimations": [ { "unsupported": false, "location": 3, "cpa_min": 110, "cpa_median": 202, "cpa_max": 312, "cpc_min": 31, "cpc_median": 57, "cpc_max": 87, "cpm_min": 32, "cpm_median": 92, "cpm_max": 187 } ], "estimate_ready": true } }
AdGroup response:
{ "data": [ { "users": 160000, "bid_estimations": [ { "unsupported": false, "location": 3, "cpa_min": 114, "cpa_median": 211, "cpa_max": 300, "cpc_min": 23, "cpc_median": 41, "cpc_max": 60, "cpm_min": 221, "cpm_median": 526, "cpm_max": 925 } ], "estimate_ready": true } ] }
The text was updated successfully, but these errors were encountered:
Was unable to repro this issue. Please feel free to reopen this if you continue to see this issue and provide detailed repro steps.
Sorry, something went wrong.
No branches or pull requests
Hi,
when trying to get reachestimate with an AdAccount object, build_objects_from_response can't build the object from the response.
The problem seems to be that the response includes 'data' as a dict, and not as a list. (like in the reachestimate response of AdGroups)
AdAccount response:
{
"users": 3300,
"bid_estimations": [
{
"unsupported": false,
"location": 3,
"cpa_min": 110,
"cpa_median": 202,
"cpa_max": 312,
"cpc_min": 31,
"cpc_median": 57,
"cpc_max": 87,
"cpm_min": 32,
"cpm_median": 92,
"cpm_max": 187
}
],
"estimate_ready": true,
"data": {
"users": 3300,
"bid_estimations": [
{
"unsupported": false,
"location": 3,
"cpa_min": 110,
"cpa_median": 202,
"cpa_max": 312,
"cpc_min": 31,
"cpc_median": 57,
"cpc_max": 87,
"cpm_min": 32,
"cpm_median": 92,
"cpm_max": 187
}
],
"estimate_ready": true
}
}
AdGroup response:
{
"data": [
{
"users": 160000,
"bid_estimations": [
{
"unsupported": false,
"location": 3,
"cpa_min": 114,
"cpa_median": 211,
"cpa_max": 300,
"cpc_min": 23,
"cpc_median": 41,
"cpc_max": 60,
"cpm_min": 221,
"cpm_median": 526,
"cpm_max": 925
}
],
"estimate_ready": true
}
]
}
The text was updated successfully, but these errors were encountered: