@@ -81,7 +81,7 @@ type DebugInfo struct {
8181type UsageInfo struct {
8282 App RateLimiting `json:"app"` // HTTP header X-App-Usage.
8383 Page RateLimiting `json:"page"` // HTTP header X-Page-Usage.
84- AdAccount RateLimiting `json:"ad_account"` // HTTP header X-Ad-Account-Usage.
84+ AdAccount AdAccountUsage `json:"ad_account"` // HTTP header X-Ad-Account-Usage.
8585 AdsInsights AdsInsightsThrottle `json:"ads_insights"` // HTTP header x-fb-ads-insights-throttle
8686 BusinessUseCase BusinessUseCaseUsage `json:"business_use_case"` // HTTP header x-business-use-case-usage.
8787}
@@ -97,13 +97,16 @@ type RateLimiting struct {
9797
9898// AdsInsightsThrottle is the rate limiting header for Ads Insights API.
9999type AdsInsightsThrottle struct {
100- AppIDUtilPCT float64 `json:"app_id_util_pct"` // The percentage of allocated capacity for the associated app_id has consumed.
101- AccIDUtilPCT float64 `json:"acc_id_util_pct"` // The percentage of allocated capacity for the associated ad account_id has consumed.
100+ AppIDUtilPCT float64 `json:"app_id_util_pct"` // The percentage of allocated capacity for the associated app_id has consumed.
101+ AccIDUtilPCT float64 `json:"acc_id_util_pct"` // The percentage of allocated capacity for the associated ad account_id has consumed.
102+ AdsAPIAccessTier string `json:"ads_api_access_tier"` // Tiers allows your app to access the Marketing API. standard_access enables lower rate limiting.
102103}
103104
104105// AdAccountUsage is the rate limiting header for Ads API.
105106type AdAccountUsage struct {
106- AccIDUtilPCT float64 `json:"acc_id_util_pct"` // Percentage of calls made for this ad account.
107+ AccIDUtilPCT float64 `json:"acc_id_util_pct"` // Percentage of calls made for this ad account.
108+ ResetTimeDuration int64 `json:"reset_time_duration"` // Time duration (in seconds) it takes to reset the current rate limit to 0.
109+ AdsAPIAccessTier string `json:"ads_api_access_tier"` // Tiers allows your app to access the Marketing API. standard_access enables lower rate limiting.
107110}
108111
109112// BusinessUseCaseUsage is the business use case usage data.
0 commit comments