קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בחירת תהליך ההרשמה
אחת ההחלטות החשובות ב-AFP היא בחירת תהליך ההרשמה להצטרפות המשתמשים. מטרת ההרשמה היא לאפשר למשתמשים ליצור חשבון AdSense חדש (או להיכנס לחשבון AdSense קיים) ולקשר אותו לפלטפורמה שלכם. האפשרות שתבחרו תלויה במשאבים הטכניים שאתם רוצים להשקיע בפיתוח ובחוויית ההצטרפות שתרצו לספק למשתמשים.
אפשרות 1: תהליך ללא API
אפשרות 1 דורשת את הכי פחות משאבים טכניים, כי היא לא משתמשת ב-API. תצטרכו רק מפתח אינטרנט כדי ליצור את ממשק המשתמש בפלטפורמה. עם זאת, הצד השני של המטבע הוא שהאפשרות הזו מחייבת את המשתמשים לבצע יותר שלבים כדי להשלים את תהליך ההרשמה.
סקירה כללית על תהליך ההרשמה ללא API

הטמעה
כדי להטמיע תהליך הרשמה ללא ממשק API, צריך לספק רכיב ממשק משתמש למונטיזציה ב-AdSense. לדוגמה, בדף שבו המשתמשים ניגשים ל'פרופיל המשתמש' או ל'הגדרות החשבון', מוסיפים דף מונטיזציה שכולל את הפריטים הבאים:
- תיאור קצר של AdSense והאופן שבו הוא פועל עם הפלטפורמה שלכם. המשתמשים צריכים להיות מודעים לחלוטין לכך שהם נרשמים לחשבון AdSense חדש או משתמשים בחשבון AdSense הקיים שלהם.
- מידע על המדיניות של תוכנית AdSense. כל המשתמשים שנרשמים צריכים להיות מודעים לתוכנית AdSense ולמדיניות שלה.
- חלוקת ההכנסות שהמשתמשים יקבלו. חשוב להציג למשתמשים באופן מפורש מהו האחוז מההכנסות מ-AdSense שיישאר לכם ומה האחוז שיישאר לבעל האתר. בנוסף, המידע הזה יוצג ב-AdSense במהלך תהליך ההצטרפות.
- לחצן 'קישור AdSense'. הלחצן הזה יפתח כרטיסייה חדשה ויעביר את המשתמש לדף הנכון ב-AdSense, בהתאם לכך אם יש לו חשבון AdSense קיים או לא.
דוגמה לכתובת URL מותאמת אישית:
https://adsense.google.com/adsense/signup?url={platform-site-url}
הערה: Google תספק לכם את כתובת ה-URL של דף ההרשמה המותאם אישית ותסייע לכם להגדיר את התוכן של משתנה כתובת ה-URL.
- תיבת קלט לאיסוף ולאחסון של מזהה בעל האתר של המשתמש ב-AdSense. אחרי שהמשתמש ייכנס לקישור שלמעלה, הוא יצטרך להעתיק ולהדביק את מזהה בעל התוכן הדיגיטלי שלו בתיבה הזו.
חשוב: חשוב לשמור את מזהה המוציא לאור של המשתמש כדי שתוכלו לתייג את דפי התוכן של המשתמש עם פרטי המוציא לאור הנכונים. מידע נוסף זמין במאמר הוספת תג המודעות לדפים.
חשוב לוודא שהמחרוזת שהוזנה תקינה. הפורמט של מזהה בעל האתר הוא: pub-1234567890987654
או בביטוי רגולרי: pub\-\d{16}
חשוב: משתמשי AdSense מסוימים יכולים להדביק את מזהה בעל האתר שלהם בלי ללחוץ על הלחצן 'קישור AdSense'. חשוב להודיע למשתמשים שצריך לציין את דומיין הפלטפורמה בדף אתרים בחשבון AdSense שלהם כדי שיוכלו להציג מודעות. זו המטרה העיקרית של הכפתור הזה.
- סטטוס התיוג של המשתמש. המשתמשים ירצו לדעת אם קוד המודעות שלהם הוטמע בדפים שלהם. כחלק מחוויית המשתמש, כדאי להודיע למשתמשים כשאתם מתייגים את הדפים שלהם באמצעות מזהה בעל התוכן הדיגיטלי שלהם ב-AdSense. בנוסף, אפשר לאכלס את המטא תג של חשבון הצאצא, שיעזור ל-AdSense במהלך שלבי אימות האתר. כך גם לא תצטרכו לפרסם תגי מודעות בדפים שלהם בשם המשתמש.
אפשרות 2: תהליך API עם תמיכה חלקית
באפשרות 2 נעשה שימוש ב-AdSense Management API כדי לפשט מעט את תהליך ההרשמה. היא דורשת יותר משאבים טכניים, אבל מפחיתה את מספר השלבים שהמשתמשים צריכים לבצע כדי להירשם ל-AdSense.
סקירה כללית על תהליך ה-API עם תמיכה חלקית

הטמעה
כדי להטמיע תהליך הרשמה עם תמיכה חלקית באמצעות API, צריך לספק רכיב ממשק משתמש למונטיזציה ב-AdSense. לדוגמה, בדף שבו המשתמשים ניגשים ל'פרופיל המשתמש' או ל'הגדרות החשבון', מוסיפים דף מונטיזציה שכולל את הפריטים הבאים:
- תיאור קצר של AdSense והאופן שבו הוא פועל עם הפלטפורמה שלכם. המשתמשים צריכים להיות מודעים לחלוטין לכך שהם נרשמים לחשבון Google AdSense או משתמשים בחשבון AdSense הקיים שלהם.
- מידע על המדיניות של תוכנית AdSense. כל המשתמשים שנרשמים צריכים להיות מודעים לתוכנית AdSense ולמדיניות שלה.
- חלוקת ההכנסות שהמשתמשים יקבלו. חשוב להציג למשתמשים באופן מפורש מהו האחוז מההכנסות מ-AdSense שיישאר לכם ומה האחוז שיישאר לבעל האתר. בנוסף, המידע הזה יוצג ב-AdSense במהלך תהליך ההצטרפות.
- לחצן 'קישור AdSense'. לחיצה על הלחצן הזה תעניק לכם, בתור הפלטפורמה, הרשאה לגשת לפרטי החשבון של לקוח AdSense באמצעות AdSense Management API. כדי להגדיר את זה, יש לפעול לפי ההוראות במסמכי התיעוד למפתחים. בעזרת ה-API הזה תוכלו לבצע את שני השלבים הבאים.
- משתמשים ב-AdSense Management API כדי לאסוף את מזהה בעל האתר ב-AdSense של המשתמש. חשוב לוודא שהמחרוזת שהוזנה תקינה.
הפורמט של מזהה בעל אפליקציה הוא: pub-1234567890987654
או בתנאי ביטוי רגולרי: pub\-\d{16}
חשוב: חיוני לאחסן את מזהה בעל האפליקציה של המשתמש כדי שתוכלו לתייג את דפי התוכן של המשתמש עם פרטי בעל האפליקציה הנכונים. מידע נוסף זמין במאמר הוספת תג המודעות לדפים.
- משתמשים ב-AdSense Management API כדי לבדוק אם המשתמש הוסיף את אתר הפלטפורמה לחשבון AdSense שלו. אם לא, צריך לבקש מהמשתמש ללחוץ על הקישור הבא כדי להשלים את ההגדרה. שם האתר שצריך לבדוק ב-API הוא המשתנה
{platform-site-url}
בקישור שבהמשך.
https://adsense.google.com/adsense/signup?url={platform-site-url}
הערה: Google תספק לכם את כתובת ה-URL של דף ההרשמה המותאם אישית ותסייע לכם להגדיר את התוכן של משתנה ה-URL.
- - סטטוס התיוג של המשתמש. המשתמשים ירצו לדעת אם קוד המודעות שלהם הוטמע בדפים שלהם או לא. כחלק מחוויית המשתמש, כדאי להודיע למשתמשים כשאתם מתייגים את הדפים שלהם באמצעות מזהה בעל התוכן הדיגיטלי שלהם ב-AdSense. בנוסף, אפשר לאכלס את המטא תג של חשבון הצאצא, שיעזור ל-AdSense במהלך שלבי אימות האתר. כך גם לא תצטרכו לפרסם תגי מודעות בדפים שלהם בשם המשתמש.
אפשרות 3: Embedded Connect
התכונה Embedded Connect מסירה את כל המורכבות של טיפול בחשבונות AdSense במצבים שונים. בהתאם לסטטוס החשבון, חשבון הלקוח של המודעות והאתר בחשבון AdSense של משתמש נתון, תהליך ההצטרפות המובנה יציג חוויית הצטרפות מותאמת אישית לכל משתמש, כדי שלא תצטרכו לעשות זאת.

ההטמעה כוללת ספריית JavaScript, div ריק שבו מערכת AdSense תיצור ווידג'ט להרשמה ופונקציות קריאה חוזרת (callbacks) שיעזרו לכם לשמור את מזהה בעל התוכן הדיגיטלי אחרי שהמשתמש ישלים את תהליך ההרשמה. אפשר להשתמש גם ב-AdSense Management API כדי לשפר את חוויית השימוש, למשל על ידי אחזור של יחידות מודעות או של מצב המודעות האוטומטיות.
מידע נוסף על Embedded Connect
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
[[["התוכן קל להבנה","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"]],[],[[["\u003cp\u003eAdSense for Platforms (AFP) offers three signup flow options to onboard users, each with varying technical requirements and user experiences.\u003c/p\u003e\n"],["\u003cp\u003eThe API-less flow is the simplest to implement but requires more user steps; the Semi-assisted API flow utilizes the AdSense Management API for a smoother experience; and Embedded Connect provides a fully customized and automated signup process.\u003c/p\u003e\n"],["\u003cp\u003eAll signup flows necessitate clear communication with users about AdSense policies, revenue share, and tagging status, ensuring transparency and understanding.\u003c/p\u003e\n"],["\u003cp\u003eRegardless of the chosen flow, securely storing the user's AdSense Publisher ID is crucial for proper ad serving and revenue tracking.\u003c/p\u003e\n"],["\u003cp\u003eAFP provides flexibility for platforms to tailor the signup experience to their specific needs and technical capabilities while adhering to AdSense guidelines.\u003c/p\u003e\n"]]],["The document outlines three signup flows for integrating AdSense into a platform. The API-less flow requires users to manually connect their AdSense account via a link and input their publisher ID. The semi-assisted API flow utilizes the AdSense Management API to retrieve the user's publisher ID and check their site status, reducing user steps. Embedded Connect, a third option, uses a JavaScript library for a streamlined experience and handles complex account states automatically. All options involve displaying AdSense policies and revenue sharing information.\n"],null,["Choose a sign up flow\n---------------------\n\nAn important decision with AFP is to choose a sign up flow to onboard your users. The purpose of the sign up is to allow your users to create a new AdSense account (or sign in to an existing AdSense account) and link it to your platform. The option you choose will depend on the technical resources you want to invest in development and the onboarding experience you want to provide for your users.\n\n### Option 1: API-less flow\n\nOption 1 requires the fewest technical resources as it doesn't use an API. You will only need a web developer to build the user interface within your platform. However, the trade-off is that this option requires your users to take more steps to complete the signup flow.\n\n#### Overview of the API-less signup flow\n\n#### Implementation\n\nTo implement an API-less signup flow, you need to provide a UI component for AdSense monetization. For example, on the page where your users access their \"user profile\" or \"account settings\", add a monetization page that includes the following:\n\n- A short description of AdSense and how it interacts with your platform. Users should be completely aware that they're either signing up for a new AdSense account or using their existing AdSense account.\n- Information about the [AdSense Program policies](https://support.google.com/adsense/answer/48182). All users who sign up should be aware of the AdSense Program and its policies.\n- The revenue share that your users will receive. It's important to explicitly show users what percentage of the AdSense revenue you will keep and what percentage the publisher will keep. AdSense will additionally show this information during the onboarding flow.\n- A \"Connect AdSense\" button. This button will open a new tab and take the user to the correct page in AdSense depending on whether or not they have an existing AdSense account. \n Example custom URL: \n `https://adsense.google.com/adsense/signup?url={platform-site-url}` \n **Note:** Google will provide you with the URL of the custom signup page, and help you define the contents of the URL variable.\n- An input box to collect and store the user's AdSense publisher ID. After a user visits the link above, they will need to copy and paste their publisher ID into this input box. \n **Important:** It's critical that you store the user's publisher ID so that you can tag the user's content pages with the correct publisher information. See the [Add the ad tag to your pages](/adsense/platforms/transparent/ad-tags) for more information. \n Make sure you validate the inputted string. The format of a publisher ID is: `pub-1234567890987654` \n Or in regex terms: `pub\\-\\d{16}` \n **Important:** Some AdSense users may paste their publisher ID without clicking on the \"Connect AdSense\" button. It's important to let users know that the **Sites** page in their AdSense account needs to have the platform domain listed before ads can be served. This is the primary purpose of this button.\n- The user's tagging status. Users will want to know whether their ad code has been placed on their pages or not. As part of the user experience, let your users know when you've tagged their pages with their AdSense publisher ID. You can additionally populate the [child account meta tag](/adsense/platforms/transparent/meta-tags#child_account) which will assist AdSense during the site verification steps. This also removes the need to publish ad tags on their pages on the user's behalf.\n\n### Option 2: Semi-assisted API flow\n\nOption 2 uses the [AdSense Management API](https://developers.google.com/adsense/management) to slightly simplify the signup flow. It requires more technical resources but reduces the number of steps your users need to take to sign up for AdSense.\n\n#### Overview of the semi-assisted API flow\n\n#### Implementation\n\nTo implement a semi-assisted signup flow with an API, you need to provide a UI component for AdSense monetization. For example, on the page where your users access their \"user profile\" or \"account settings\", add a monetization page that includes the following:\n\n- A short description of AdSense and how it interacts with your platform. Users should be completely aware that they are signing up for a Google AdSense account, or using their existing AdSense account.\n- Information about the [AdSense Program policies](https://support.google.com/adsense/answer/48182). All users who sign up should be aware of the AdSense Program and its policies.\n- The revenue share that your users will receive. It's important to explicitly show users what percentage of the AdSense revenue you will keep and what percentage the publisher will keep. AdSense will additionally show this information during the onboarding flow.\n- A \"Connect AdSense\" button. This button will authorize you as the platform to access an AdSense customer's account information using the [AdSense Management API](https://developers.google.com/adsense/management). Please follow the instructions on our developer documentation to set this up. Using this API you can perform the next two steps.\n- Use the AdSense Management API to collect the user's AdSense publisher ID. Make sure you validate the inputted string. \n The format of a publisher ID is: `pub-1234567890987654` \n Or in regex terms: `pub\\-\\d{16}` \n **Important:** It's critical that you store the user's publisher ID so that you can tag the user's content pages with the correct publisher information. See the See the [Add the ad tag to your pages](/adsense/platforms/transparent/ad-tags) for more information.\n- Use the AdSense Management API to check if the user has added the platform site to their AdSense account. If not, ask the user to follow the link below to complete the set up. The name of the site you should check for in the API is the `{platform-site-url}` variable in the link below. \n `https://adsense.google.com/adsense/signup?url={platform-site-url}` \n **Note:** Google will provide you with the URL of the custom signup page, and help you define the contents of the url variable.\n- - The user's tagging status. Users will want to know whether their ad code has been placed on their pages or not. As part of the user experience, let your users know when you've tagged their pages with their AdSense publisher ID. You can additionally populate the [child account meta tag](/adsense/platforms/transparent/meta-tags#child_account) which will assist AdSense during the site verification steps. This also removes the need to publish ad tags on their pages on the user's behalf.\n\n### Option 3: Embedded Connect\n\nEmbedded Connect removes all the complexity of dealing with AdSense accounts in different states. Depending on the account, ad client and site statuses for a given user's AdSense account, the Embedded Connect flow will present a customized onboarding experience for each user so that you don't have to.\n\nThe implementation involves a JavaScript library, an empty div where AdSense will render a sign-up widget, and some callback functions which will allow you to save the publisher ID once the user has completed the sign-up flow. You can supplementally use the [AdSense Management API](/adsense/management) to augment the experience, for example by retrieving ad units or the state of Auto ads.\n\n[Learn more about Embedded Connect](/adsense/platforms/transparent/embedded-connect)"]]