সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কখনও কখনও একটি একক প্রতিবেদন থেকে আপনার প্রয়োজনীয় সমস্ত তথ্য পাওয়া সম্ভব হয় না, যেমন আপনার যখন বেমানান মাত্রা এবং মেট্রিক্স থাকে বা যখন আপনি বিভিন্ন উপায়ে ডেটা একত্রিত করতে চান৷
এই পরিস্থিতিতে, আপনাকে একাধিক প্রতিবেদন চালাতে হবে।
এছাড়াও, ব্যাচিং আপনার অ্যাপের কর্মক্ষমতা উন্নত করার একটি কার্যকর উপায়, অনুরোধের সংখ্যা হ্রাস করে৷
একাধিক স্বাধীন অনুরোধ করার সমস্যা
কার্যকর করার একটি সহজ সমাধান হলেও, অল্প সময়ের মধ্যে একাধিক API অনুরোধ করা আপনাকে কোটা সীমাবদ্ধতার মধ্যে পড়তে পারে।
একটি ভাল সমাধান হল সমান্তরাল অনুরোধগুলি সম্পূর্ণভাবে এড়ানো এবং পরিবর্তে ব্যাচ অনুরোধগুলি তৈরি করা।
ব্যাচিং রিপোর্ট করুন
একটি ব্যবহারকারী-চালিত অ্যাপ্লিকেশনের উদাহরণে, একটি প্রথম পদ্ধতি হবে যতটা সম্ভব স্বাধীন অনুরোধগুলিকে একটি একক ব্যাচের অনুরোধে একত্রিত করা।
রিপোর্ট 1: আগস্টের জন্য শীর্ষ 10 দেশ প্রতিবেদন 2: তুলনার জন্য জুলাই মাসে একই 10টি দেশের মূল্য রিপোর্ট 3: আগস্টের জন্য সেরা 10টি চ্যানেল প্রতিবেদন 4: তুলনার জন্য জুলাই মাসে একই 10টি চ্যানেলের মান
উপরের উদাহরণে, রিপোর্ট 1 এবং 3 স্বাধীন, কিন্তু একটি একক রিপোর্টে একত্রিত করা যাবে না, যেহেতু তারা ডেটার বিভিন্ন ব্রেকডাউন অফার করে। তারা, তবে, একসঙ্গে ব্যাচ করা যেতে পারে.
রিপোর্ট 2 এবং 4 শুধুমাত্র প্রথম ব্যাচের ফলাফল পাওয়ার পরে চালানো যেতে পারে, যেহেতু আমাদের অনুরোধে একটি উপযুক্ত ফিল্টার সেট আপ করতে হবে। প্রথম থেকে ফলাফল আসার পরে এগুলি দ্বিতীয় ব্যাচ হিসাবে চালানো যেতে পারে।
একটি ভিন্ন বিকল্প, যা সমস্ত অনুরোধকে একটি একক ব্যাচে একত্রিত করার অনুমতি দেবে, কেবলমাত্র জুলাইয়ের জন্য সমস্ত মান ফেরত দেওয়া হবে (শুধুমাত্র শীর্ষ 10টির পরিবর্তে), এবং সম্ভাব্য আগস্টও৷ প্রশ্নে থাকা AdSense অ্যাকাউন্টের আকার এবং আপনার অ্যাপ্লিকেশনে উপলব্ধ মেমরির পরিমাণের উপর নির্ভর করে এটি একটি যুক্তিসঙ্গত বিকল্প হতে পারে।
এটা কিভাবে হল
প্রতিটি ক্লায়েন্ট লাইব্রেরিতে ব্যাচিং আলাদাভাবে পরিচালনা করা হয়, তাই আপনার বিস্তারিত জানার জন্য এর ডকুমেন্টেশন পরীক্ষা করা উচিত। এখানে বেশ কয়েকটি ক্লায়েন্ট লাইব্রেরিতে প্রাসঙ্গিক ডকুমেন্টেশনের কিছু লিঙ্ক রয়েছে:
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eBatching requests improves app performance by reducing the number of API calls and mitigating quota limitations.\u003c/p\u003e\n"],["\u003cp\u003eIndependent reports, like those with incompatible dimensions or metrics, can be combined into batch requests.\u003c/p\u003e\n"],["\u003cp\u003eBatching can involve grouping related reports or retrieving broader data sets to minimize the total number of batches.\u003c/p\u003e\n"],["\u003cp\u003eSpecific batching implementations vary by client library (.NET, PHP, Python, Java, Ruby, etc.).\u003c/p\u003e\n"],["\u003cp\u003eFor handling very large reports or incompatible dimensions and metrics, refer to the provided resources for further guidance.\u003c/p\u003e\n"]]],["When single reports can't provide all necessary data due to incompatible dimensions or different aggregation needs, multiple reports are required. Batching multiple API requests improves app performance and reduces quota limitations, avoiding parallel requests. Independent requests, like retrieving top countries and channels, can be combined into a single batch. Subsequent requests for comparison data can be batched afterward, once the initial batch results are available. Client libraries offer varied methods for batching, requiring consultation of their respective documentation.\n"],null,["# Batch\n\nSometimes it's not possible to get all the information you need out of a single report, such as when you have incompatible dimensions and metrics, or when you're looking to aggregate data in different ways.\n\nIn those situations, you'll need to run multiple reports.\n\nAlso, batching is an effective way to improve your app's performance, reducing the number of requests.\n\nThe problem with making multiple independent requests\n-----------------------------------------------------\n\nWhile a simple solution to implement, making multiple API requests in a short amount of time may cause you to run into quota limitations.\n\nA better solution is to avoid the parallel requests altogether, and instead create batch requests.\n\nReport batching\n---------------\n\nIn the example of a user-driven application, a first approach would be to combine as many independent requests as possible into a single batch request.\n\n\n**Report 1:** Top 10 countries for August \n\n**Report 2:** Values for same 10 countries in July, for comparison \n\n**Report 3:** Top 10 channels for August \n\n**Report 4:** Values for same 10 channels in July, for comparison\n\nIn the above example, reports 1 and 3 are independent, but cannot be combined into a single report, since they offer different breakdowns of the data. They can, however, be batched together.\n\nReports 2 and 4 can only be run after obtaining the results of the first batch, since we need to set up an appropriate filter in the request. These can be run as a second batch, once the results from the first arrive.\n\nA different option, which would allow all requests to be combined into a single batch, would be to simply return all values for July (instead of just the top 10), and potentially August as well. This may be a reasonable option depending on the size of the AdSense account in question and the amount of memory available to your application.\n\nHow it's done\n-------------\n\nBatching is handled differently in each client library, so you should check its documentation in order to find out the details. Here are some links to the relevant documentation in several client libraries:\n\n- [.NET](https://developers.google.com/api-client-library/dotnet/guide/batch)\n- [PHP](https://developers.google.com/api-client-library/php/guide/batch)\n- [Python](https://developers.google.com/api-client-library/python/guide/batch)\n- [Java](https://code.google.com/p/google-api-java-client/wiki/Batch)\n- [Ruby](https://developers.google.com/api-client-library/ruby/guide/batch)\n\n\u003cbr /\u003e\n\nNext steps\n----------\n\n- [Running Large Reports](/adsense/management/reporting/large_reports)\n- [Incompatible Dimensions and Metrics](/adsense/management/reporting/dimensions_metrics#incompatible)"]]