Early ad break notification v1
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
- সংশ্লিষ্ট লাইভ স্ট্রিমের শনাক্তকারী যেখানে বিজ্ঞাপন বিরতি তৈরি করা হচ্ছে। এই শনাক্তকারী নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
- লাইভ স্ট্রিমের "সম্পদ কী"।
- লাইভ স্ট্রিমের "কাস্টম অ্যাসেট কী", যা আপনাকে আপনার নিজস্ব শনাক্তকারী স্ট্রিং নির্দিষ্ট করে আপনার নিজস্ব কী স্পেস পরিচালনা করতে দেয়।
- লাইভ স্ট্রিমের "কন্টেন্ট সোর্স আইডি" এবং "কন্টেন্ট আইডি"।
দ্রষ্টব্য: এই শনাক্তকারীর ধরনটি ব্যবহার করতে আপনাকে অবশ্যই সক্রিয় থাকতে হবে। আরও তথ্যের জন্য, আপনার অ্যাকাউন্ট পরিচালকের সাথে যোগাযোগ করুন।
- পরবর্তী বিজ্ঞাপন বিরতির প্রত্যাশিত সময়কাল। সময়কাল যতটা সম্ভব প্রকৃত বিজ্ঞাপন বিরতির দৈর্ঘ্যের কাছাকাছি হওয়া প্রয়োজন।
এই প্রয়োজনীয় ক্ষেত্রগুলি ছাড়াও, আপনি কাস্টম টার্গেটিং প্যারামিটার, প্রয়োগ করার জন্য একটি বিজ্ঞাপন পড টেমপ্লেটের নাম বা SCTE35 কিউ আউট ডেটা পাঠাতে পারেন, যদি উপলব্ধ থাকে।
পূর্বশর্ত
EABN API ব্যবহার করার জন্য, আপনাকে অবশ্যই একটি পরিষেবা অ্যাকাউন্ট তৈরি করতে হবে এবং অ্যাকাউন্টটি আপনার Google Ad Manager নেটওয়ার্কে যোগ করতে হবে।
একটি পরিষেবা অ্যাকাউন্ট তৈরি করা
EABN API কল করার জন্য একটি পরিষেবা অ্যাকাউন্ট তৈরি করতে, নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন: - আপনার যদি একটি Google ক্লাউড অ্যাকাউন্ট থাকে তবে একটি পরিষেবা অ্যাকাউন্ট তৈরি করতে IAM মডিউল ব্যবহার করুন৷ আরও তথ্যের জন্য, পরিষেবা অ্যাকাউন্ট তৈরি এবং পরিচালনা দেখুন। - আপনার যদি একটি Google ক্লাউড অ্যাকাউন্ট না থাকে, তাহলে Google API কনসোল থেকে একটি তৈরি করতে নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন:
- একটি নতুন প্রকল্প তৈরি করুন বা একটি বিদ্যমান প্রকল্প নির্বাচন করুন।
- শংসাপত্র পৃষ্ঠায়, পরিষেবা অ্যাকাউন্ট পরিচালনা করুন ক্লিক করুন।
- পরিষেবা অ্যাকাউন্ট পৃষ্ঠায়, পরিষেবা অ্যাকাউন্ট তৈরি করুন ক্লিক করুন।
- পরিষেবা অ্যাকাউন্ট তৈরি করুন পৃষ্ঠায়, অ্যাকাউন্টের বিবরণ লিখুন। তারপর, CREATE এ ক্লিক করুন।
একবার আপনি একটি পরিষেবা অ্যাকাউন্ট তৈরি করলে, অ্যাকাউন্টের JSON কীটি অনুলিপি করুন, যা প্রমাণীকরণের জন্য ব্যবহৃত হয়।
API সক্রিয় করা হচ্ছে
একবার আপনি পরিষেবা অ্যাকাউন্ট তৈরি করার পরে, আপনার অ্যাকাউন্টের জন্য API সক্ষম করতে আপনার অ্যাকাউন্ট পরিচালককে নিম্নলিখিত তথ্য সরবরাহ করুন:
- আপনার Google ক্লাউড অ্যাকাউন্টের ইমেল ঠিকানা
- আপনার পরিষেবা অ্যাকাউন্ট
- আপনার Google বিজ্ঞাপন ম্যানেজার নেটওয়ার্কের নেটওয়ার্ক কোড।
আপনার অ্যাকাউন্ট ম্যানেজার দ্বারা API সক্ষম করার পরে, API সক্ষম করতে নিম্নলিখিত পদক্ষেপগুলি সম্পূর্ণ করুন:
- Google API লাইব্রেরিতে , "Google Ad Manager Video API" অনুসন্ধান করুন৷
- ENABLE এ ক্লিক করুন।
দ্রষ্টব্য: সার্চের ফলাফলে APIটি উপস্থিত না হলে, আপনার অ্যাকাউন্ট DAI API-এর জন্য সক্ষম করা হয়েছে তা নিশ্চিত করতে আপনার অ্যাকাউন্ট পরিচালকের সাথে যোগাযোগ করুন।
API ব্যবহার করে
আপনি JSON/REST অনুরোধ ব্যবহার করে EABN API কল করতে পারেন।
অনুমোদন
EABN API-এ অনুমোদিত কল করতে, আপনাকে আপনার পরিষেবা অ্যাকাউন্ট থেকে JSON কী ব্যবহার করে OAuth2 পরিষেবা অ্যাকাউন্টের শংসাপত্র তৈরি করতে হবে এবং https://www.googleapis.com/auth/video-ads
স্কোপ। আরও তথ্যের জন্য, সার্ভার থেকে সার্ভার অ্যাপ্লিকেশনের জন্য OAuth 2.0 ব্যবহার করা দেখুন।
আপনাকে অবশ্যই EABN API-তে প্রতিটি কলের জন্য একটি প্রমাণীকরণ শিরোনাম হিসাবে ফলস্বরূপ অনুমোদন টোকেন অন্তর্ভুক্ত করতে হবে।
একটি প্রাথমিক বিজ্ঞাপন বিরতির বিজ্ঞপ্তি পাঠাতে, আপনি কীভাবে লাইভ স্ট্রিম নির্দিষ্ট করতে পছন্দ করেন তার উপর নির্ভর করে তিনটি বৈধ EABN URL-এর একটিতে একটি POST অনুরোধ পাঠান। নিম্নলিখিত বিভাগগুলি URL-এর মধ্যে পার্থক্য ব্যাখ্যা করে এবং অনুরোধ এবং প্রতিক্রিয়া উদাহরণ প্রদান করে।
ইউআরএল
প্রাথমিক বিজ্ঞাপন বিরতির বিজ্ঞপ্তির জন্য তিনটি বৈধ URL আছে। আপনি একটি বিজ্ঞাপন বিরতি ( POST
) তৈরি করতে বা নির্ধারিত বিজ্ঞাপন বিরতির তালিকা পেতে ( GET
) তিনটি প্রকার ব্যবহার করতে পারেন৷
একটি লাইভ স্ট্রিমের সম্পদ কী ব্যবহার করতে, ব্যবহার করুন:
POST admanagervideo.googleapis.com/v1/networks/{network_code}/assets/{asset_key}/adBreaks
GET admanagervideo.googleapis.com/v1/networks/{network_code}/assets/{asset_key}/adBreaks
লাইভ স্ট্রিমের কাস্টম অ্যাসেট কী ব্যবহার করতে, ব্যবহার করুন:
POST admanagervideo.googleapis.com/v1/networks/{network_code}/customAssets/{custom_asset_key}/adBreaks
GET admanagervideo.googleapis.com/v1/networks/{network_code}/customAssets/{custom_asset_key}/adBreaks
কন্টেন্ট সোর্স আইডি এবং কন্টেন্ট আইডি পদ্ধতি ব্যবহার করতে, ব্যবহার করুন:
POST admanagervideo.googleapis.com/v1/networks/{network_code}/sources/{content_source_id}/content/{content_id}/adBreaks
GET admanagervideo.googleapis.com/v1/networks/{network_code}/sources/{content_source_id}/content/{content_id}/adBreaks
সমস্ত পরামিতি জন্য:
-
network_code
আপনার Google Ad Manager নেটওয়ার্কের নেটওয়ার্ক কোড উপস্থাপন করে। -
asset_key
আপনার লাইভ স্ট্রিম বিবরণ পৃষ্ঠায় দেখানো সম্পদ কী প্রতিনিধিত্ব করে। -
custom_asset_key
আপনার লাইভ স্ট্রিমের কাস্টম সম্পদ কী উপস্থাপন করে। -
content_source_id
Google Ad Manager-এ কন্টেন্ট সোর্সের আইডি উপস্থাপন করে। -
content_id
Google Ad Manager-এ কন্টেন্টের একটি অংশের আইডি উপস্থাপন করে।
দ্রষ্টব্য: নির্দিষ্ট content_source_id
/ content_id
জোড়া অবশ্যই Google Ad Manager-এ একটি লাইভ স্ট্রিমের সাথে যুক্ত হতে হবে।
রিকোয়েস্ট বডি - শুধুমাত্র একটি অ্যাড ব্রেক (পোস্ট) তৈরি করতে ব্যবহৃত হয়
অবজেক্ট |
expectedDuration | প্রয়োজন | এই বিজ্ঞাপন বিরতির সময়কাল, Google-এর আদর্শ সময়কাল বিন্যাস ব্যবহার করে (xx.xxxs যেখানে xx.xxx সেকেন্ডের সংখ্যা) |
customParams | ঐচ্ছিক | AM360-এ কাস্টম মানদণ্ড লক্ষ্য করার জন্য এই বিরতির জন্য বিজ্ঞাপনের অনুরোধে কী-মূল্যের জোড়াগুলি অন্তর্ভুক্ত করা হবে, যা দ্বারা পৃথক করা হয়েছে = এবং যোগদান করেছে & . উদাহরণ:
key=value&key2=value2,value3 টার্গেটিং সম্পর্কে আরও তথ্যের জন্য, আপনার স্ট্রীমে টার্গেটিং প্যারামিটার সরবরাহ করুন দেখুন।
|
podTemplateName | ঐচ্ছিক | বিজ্ঞাপন পড টেমপ্লেট নাম |
scte35CueOut | ঐচ্ছিক | scte35 থেকে বেস-64-এনকোড করা ডেটা কিউ আউট। অন্তর্ভুক্ত করতে পারেন splice_insert() বা time_signal() আদেশ উদাহরণ: |
উদাহরণ অনুরোধ
POST admanagervideo.googleapis.com/v1/networks/.../sources/.../content/.../adBreaks
Content-Type: application/json
Authorization: Bearer …
{
"expectedDuration": "30s",
"scte35CueOut": "/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==",
"customParams": "param1=value1¶m2=value2",
"podTemplateName": "podtemplate"
}
প্রতিক্রিয়া শরীর
রেসপন্স বডিতে adBreak
অবজেক্টে পাঠানো সমস্ত প্যারামিটার থাকে, সেইসাথে একটি অতিরিক্ত name
ফিল্ড থাকে, যাতে তৈরি করা বিজ্ঞাপন বিরতির Google-ব্যাপী স্ট্যান্ডার্ড আইডি থাকে। এই ক্ষেত্রটি নিম্নলিখিত বিন্যাসে ফিরে এসেছে:
networks/{network_code}/assets/{asset_key}/adBreaks/{ad_break_id}
উদাহরণ প্রতিক্রিয়া
HTTP/1.1 200 OK
{
"name": "networks/.../assets/.../adBreaks/1",
"expectedDuration": "30s",
"scte35CueOut": "/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==",
"customParams": "param1=value1¶m2=value2",
"podTemplateName": "podtemplate"
}
GET admanagervideo.googleapis.com/v1/networks/.../sources/.../content/.../adBreaks
Content-Type: application/json
Authorization: Bearer …
প্রতিক্রিয়া শরীর
প্রতিক্রিয়া বডিতে স্ট্রীমের জন্য নির্ধারিত প্রতিটি বিজ্ঞাপন বিরতির জন্য একটি অতিরিক্ত breakState
ফিল্ড সহ বিজ্ঞাপন বিরতি রয়েছে। breakState
ক্ষেত্র নিম্নলিখিত মান সমর্থন করে:
// Ad break decisioning has started.
BREAK_STATE_DECISIONED
// Break has started to be delivered to end users.
BREAK_STATE_COMPLETE
উদাহরণ প্রতিক্রিয়া
HTTP/1.1 200 OK
{
"name": "networks/.../assets/.../adBreaks/1",
"expectedDuration": "30s",
"breakState": "BREAK_STATE_COMPLETE"
}
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Early Ad Break Notification (EABN) API enables you to inform Google Ad Manager about upcoming ad breaks in live streams, including metadata, up to an hour in advance.\u003c/p\u003e\n"],["\u003cp\u003eTo use the EABN API, you must create a service account, add it to your Google Ad Manager network, and have the API enabled by your account manager.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires the live stream identifier (asset key, custom asset key, or content source ID with content ID) and the expected ad break duration.\u003c/p\u003e\n"],["\u003cp\u003eYou can optionally include custom targeting parameters, an ad pod template name, and SCTE35 Cue Out data with your EABN requests.\u003c/p\u003e\n"],["\u003cp\u003eEABN requests are immutable, and subsequent requests for the same event are rejected until the break appears in the event's manifest.\u003c/p\u003e\n"]]],[],null,["# Early ad break notification v1\n\nUsing the Early Ad Break Notification API\n-----------------------------------------\n\n- The identifier of the corresponding live stream to which the ad break is being created. This identifier can be one of the following:\n- The \"Asset Key\" of the live stream.\n- The \"Custom Asset Key\" of the live stream, which allows you to manage your own key space by specifying your own identifier string.\n- The \"Content Source ID\" and the \"Content ID\" of the live stream.\n\nNote: You must be enabled to use this identifier type. For more information, contact your account manager.\n\n- The expected duration of the next ad break. The duration needs to be as close to the actual ad break length as possible.\n\nIn addition to these required fields, you can also send custom targeting parameters, the name of an ad pod template to apply, or SCTE35 Cue Out data, if available.\n\n### Prerequisites\n\nIn order to use the EABN API, you must create a service account and add the account to your Google Ad Manager network.\n\n#### Creating a service account\n\nTo create a service account for calling the EABN API, complete the following steps: - If you have a Google Cloud account, use the IAM module to create a service account. For more information, see [Creating and managing service accounts](//cloud.google.com/iam/docs/creating-managing-service-accounts). - If you do not have a Google Cloud account, complete the following steps to create one from the [Google API Console](//console.developers.google.com/apis/credentials/):\n\n1. Create a new project or select an existing project.\n2. In the **Credentials** page, click **Manage service accounts**.\n3. In the **Service accounts** page, click **CREATE SERVICE ACCOUNT**.\n4. In the **Create Service account** page, enter the account details. Then, click **CREATE**.\n\nOnce you have created a service account, copy the account's JSON key, which is used for authentication.\n\n#### Adding your service account to your Google Ad Manager network\n\nTo add your service account to your network, complete the steps in [Add a service account user for API access](//support.google.com/admanager/answer/6078734).\n\n### Enabling the API\n\nOnce you have created the service account, provide the following information to your account manager to enable the API for your account:\n\n- Your Google Cloud Account email address\n- Your service account\n- The Network Code of your Google Ad Manager Network.\n\nAfter the API has been enabled by your account manager, complete the following steps to enable the API:\n\n1. In the [Google API library](//console.developers.google.com/apis/library), search for \"Google Ad Manager Video API\".\n2. Click **ENABLE**.\n\nNote: If the API does not appear in the search results, contact your account manager to confirm that your account has been enabled for the DAI API.\n\n### Using the API\n\nYou can call the EABN API using JSON/REST requests.\n\n#### Authorization\n\nTo make authorized calls to the EABN API, you need to generate OAuth2 service account credentials using the JSON key from your service account and the scope `https://www.googleapis.com/auth/video-ads`. For more information, see [Using OAuth 2.0 for Server to Server Applications](https://developers.google.com/identity/protocols/oauth2/service-account).\n\nYou must include the resulting authorization token as an Auth header for each call to the EABN API.\n\n#### Sending an early ad break notification\n\nTo send an early ad break notification, send a POST request to one of the three valid EABN URLs, depending on how you prefer to specify the live stream. The following sections explain the differences between the URLs and provide request and response examples.\n\n##### URLs\n\nThere are three valid URLs for early ad break notification. You can use all three types to create an ad break (`POST`) or get the list of assigned ad breaks (`GET`).\n\nTo use the asset key of a live stream, use: \n\n POST admanagervideo.googleapis.com/v1/networks/{network_code}/assets/{asset_key}/adBreaks\n\n GET admanagervideo.googleapis.com/v1/networks/{network_code}/assets/{asset_key}/adBreaks\n\nTo use the custom asset key of a live stream, use: \n\n POST admanagervideo.googleapis.com/v1/networks/{network_code}/customAssets/{custom_asset_key}/adBreaks\n\n GET admanagervideo.googleapis.com/v1/networks/{network_code}/customAssets/{custom_asset_key}/adBreaks\n\nTo use the Content Source ID and Content ID approach, use: \n\n POST admanagervideo.googleapis.com/v1/networks/{network_code}/sources/{content_source_id}/content/{content_id}/adBreaks\n\n GET admanagervideo.googleapis.com/v1/networks/{network_code}/sources/{content_source_id}/content/{content_id}/adBreaks\n\nFor all the parameters:\n\n- `network_code` represents the network code of your Google Ad Manager network.\n- `asset_key` represents the asset key shown in your live stream details page.\n- `custom_asset_key` represents the custom asset key of your live stream.\n- `content_source_id` represents the id of a content source in Google Ad Manager.\n- `content_id` represents the id of a piece of content in Google Ad Manager.\n\nNote: The specified `content_source_id`/`content_id` pair must be associated with a live stream in Google Ad Manager.\n\n##### Request body - only used to create an Ad Break (POST)\n\n\u003cbr /\u003e\n\n| Object |||\n| \u003cbr /\u003e `expectedDuration` \u003cbr /\u003e | Required | The duration of this ad break, using Google's standard duration format (xx.xxxs where xx.xxx is the number of seconds) |\n| \u003cbr /\u003e `customParams` \u003cbr /\u003e | Optional | Key-value pairs to be included on ad requests for this break for custom criteria targeting in AM360, separated by \u003cbr /\u003e `=` and joined by `&` . Example: `key=value&key2=value2,value3` \u003cbr /\u003e For more information on targeting, see [Supply targeting parameters to your stream](//support.google.com/admanager/answer/7320899). |\n| \u003cbr /\u003e `podTemplateName` \u003cbr /\u003e | Optional | The ad pod template name |\n| \u003cbr /\u003e `scte35CueOut` \u003cbr /\u003e | Optional | Base-64-encoded data from the scte35 cue out. Can include the \u003cbr /\u003e `splice_insert()` or `time_signal()` command. Examples: - time_signal(): \u003cbr /\u003e `/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==` \u003cbr /\u003e - splice_insert(): \u003cbr /\u003e `/DAvAAAAAAAA///wFAVIAACPf+/+c2nALv4AUsz1AAAAAAAKAAhDVUVJAAABNWLbowo=` \u003cbr /\u003e |\n|----------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n\u003cbr /\u003e\n\n### Example requests\n\n##### Create an Ad Break\n\n POST admanagervideo.googleapis.com/v1/networks/.../sources/.../content/.../adBreaks\n Content-Type: application/json\n Authorization: Bearer ...\n {\n \"expectedDuration\": \"30s\",\n \"scte35CueOut\": \"/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==\",\n \"customParams\": \"param1=value1¶m2=value2\",\n \"podTemplateName\": \"podtemplate\"\n }\n\n###### Response body\n\nThe response body contains all of the parameters sent in the `adBreak` object, as well as an additional `name` field, which contains the Google-wide standard ID of the created ad break. This field is returned in the following format: \n\n networks/{network_code}/assets/{asset_key}/adBreaks/{ad_break_id}\n\n###### Example response\n\n HTTP/1.1 200 OK\n {\n \"name\": \"networks/.../assets/.../adBreaks/1\",\n \"expectedDuration\": \"30s\",\n \"scte35CueOut\": \"/DA0AAAAAAAA///wBQb+cr0AUAAeAhxDVUVJSAAAjn/PAAGlmbAICAAAAAAsoKGKNAIAmsnRfg==\",\n \"customParams\": \"param1=value1¶m2=value2\",\n \"podTemplateName\": \"podtemplate\"\n }\n\n##### List assigned Ad Breaks\n\n GET admanagervideo.googleapis.com/v1/networks/.../sources/.../content/.../adBreaks\n Content-Type: application/json\n Authorization: Bearer ...\n\n###### Response body\n\nThe response body contains the ad breaks with an additional `breakState` field for each ad break assigned to the stream. `breakState` field supports the following values: \n\n // Ad break decisioning has started.\n BREAK_STATE_DECISIONED\n\n // Break has started to be delivered to end users.\n BREAK_STATE_COMPLETE\n\n###### Example response\n\n HTTP/1.1 200 OK\n {\n \"name\": \"networks/.../assets/.../adBreaks/1\",\n \"expectedDuration\": \"30s\",\n \"breakState\": \"BREAK_STATE_COMPLETE\"\n }"]]