Resource size-based content item selection
Systems and methods for automatically determining a content item size may be based on a size of a viewport and a width of a parent element. A script may be configured to determine a size of a viewport, determine a width of a parent element of a resource, and determine a content item size based, at least in part, on the size of the view port and the width of the parent element. A dimension of the determined content item size may be used by a content item selection system to determine a set of content items. A content item selection system may select a content item from the determined set of content items and serve data to effect display of the selected content item in the parent element with the resource.
1. A system for resource based content selection, comprising:
a data processing system including one or more processing modules and memory to:
receive, from a client device, a request for content responsive to a resource for presentation via the client device;
determine a size of a slot and a parameter of the resource;
rank each predetermined standard size of a set of predetermined standard sizes based, at least in part, on the size of the slot and the parameter of the resource;
determine a content item size based on the rank of each predetermined standard size of the set of predetermined standard sizes;
determine a set of content items based, at least in part, on the content item size;
select, from the set of content items based on the content item size, a content item; and
serve, to the client device, data to effect presentation of the content item in the resource.
2. The system of claim 1 , wherein the slot comprises a viewport, and the parameter comprises a width and a height, comprising the data processing system to:
determine the size of the viewport based on one or more retrieved values for the width and the height of a parent element of the resource.
3. The system of claim 1 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises an audio output, comprising the data processing system to:
determine the size of the audio slot based on the duration of the audio output.
4. The system of claim 1 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises a thread, comprising the data processing system to:
determine the size of the audio slot based on the duration of the thread.
5. The system of claim 1 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises a single thread merged based on a sequence dependency parameter, comprising the data processing system to:
determine the size of the audio slot based on the duration of the single thread.
6. The system of claim 1 , wherein the size comprises a first duration, the slot comprises an audio slot, the parameter comprises a second duration, and the resource comprises an audio output, comprising the data processing system to:
rank each predetermined standard size based on a duration of each predetermined standard size, an estimated revenue value of each predetermined standard size, and a ratio match value,
wherein the ratio match value is based on a ratio of the first duration of the audio slot and the second duration of the audio output.
7. The system of claim 1 , comprising the data processing system to:
not rank a second predetermined standard size of the set of predetermined standard sizes based on the second predetermined standard size greater than a predetermined percentage of the size of the slot.
8. The system of claim 1 , comprising the data processing system to:
receive data packets comprising an input audio signal detected by a sensor of the client device;
parse the input audio signal to identify a request and a trigger keyword corresponding to the request; and
select, based on the trigger keyword and the content item size, the content item via a real-time content selection process.
9. The system of claim 1 , comprising the data processing system to:
receive data packets carrying auditory signals transmitted between the client device and a conversational application programming interface that established a communication session with the client device responsive to interaction with the content item;
measure a duration of the communication session based on the auditory signals; and
select a second content item based on the duration of the communication session.
10. The system of claim 1 , comprising the data processing system to:
receive data packets carrying auditory signals transmitted between the client device and a conversational application programming interface that established a communication session with the client device responsive to interaction with the content item;
measure the size of the communication session based on the auditory signals; and
generate a quality signal based on the measured characteristic; and
adjust a real-time selection process based on the quality signal.
11. A method of serving content, comprising:
receiving, by a data processing system from a client device, a request for content responsive to a resource loading for presentation via the client device;
determining a size of a slot and a parameter of the resource;
ranking each predetermined standard size of a set of predetermined standard sizes based, at least in part, on the size of the slot and the parameter of the resource;
determining a content item size based on the ranking of each predetermined standard size of the set of predetermined standard sizes;
determining a set of content items based, at least in part, on the content item size;
selecting, from the set of content items based on the content item size, a content item; and
serving, to the client device, data to effect presentation of the content item in the resource.
12. The method of claim 11 , wherein the slot comprises a viewport, and the parameter comprises a width and a height, the method comprising:
determining the size of the viewport based on one or more retrieved values for the width and the height of a parent element of the resource.
13. The method of claim 11 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises an audio output, the method comprising:
determining the size of the audio slot based on the duration of the audio output.
14. The method of claim 11 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises a thread, the method comprising:
determining the size of the audio slot based on the duration of the thread.
15. The method of claim 11 , wherein the slot comprises an audio slot, the parameter comprises a duration, and the resource comprises a single thread merged based on a sequence dependency parameter, the method comprising:
determining the size of the audio slot based on the duration of the single thread.
16. The method of claim 11 , wherein the size comprises a first duration, the slot comprises an audio slot, the parameter comprises a second duration, and the resource comprises an audio output, the method comprising:
ranking each predetermined standard size based on a duration of each predetermined standard size, an estimated revenue value of each predetermined standard size, and a ratio match value,
wherein the ratio match value is based on a ratio of the first duration of the audio slot and the second duration of the audio output.
17. The method of claim 11 , comprising:
determining not to rank a second predetermined standard size of the set of predetermined standard sizes based on the second predetermined standard size greater than a predetermined percentage of the size of the slot.
18. The method of claim 11 , comprising:
receiving data packets comprising an input audio signal detected by a sensor of the client device;
parsing the input audio signal to identify a request and a trigger keyword corresponding to the request; and
selecting, based on the trigger keyword and the content item size, the content item via a real-time content selection process.
19. The method of claim 11 , comprising:
receiving data packets carrying auditory signals transmitted between the client device and a conversational application programming interface that established a communication session with the client device responsive to interaction with the content item;
measuring a duration of the communication session based on the auditory signals; and
selecting a second content item based on the duration of the communication session.
20. The method of claim 11 , comprising:
receiving data packets carrying auditory signals transmitted between the client device and a conversational application programming interface that established a communication session with the client device responsive to interaction with the content item;
measuring the size of the communication session based on the auditory signals; and
generating a quality signal based on the measured characteristic; and
adjusting a real-time selection process based on the quality signal.