Lecture à partir d’entités Facebook Page Insights - AWS Glue

Lecture à partir d’entités Facebook Page Insights

Prérequis

Un objet Facebook Page Insights à partir duquel vous souhaitez lire. Vous aurez besoin du nom de l’objet.

Entités prises en charge pour la source :

Entité Peut être filtré Limit prise en charge Order by prise en charge Select prise en charge* Partitionnement pris en charge
Page Content Oui Non Oui Oui Oui
Page CTA Clicks Oui Non Non Oui Oui
Page Engagement Oui Non Non Oui Oui
Page Impressions Oui Non Non Oui Oui
Page Posts Oui Non Non Oui Oui
Page Post Engagement Non Non Non Oui Non
Page Post Reactions Non Non Non Oui Non
Page Reactions Oui Non Non Oui Oui
Narrations Oui Non Non Oui Oui
Page User Demographics Oui Non Non Oui Oui
Page Video Views Oui Non Non Oui Oui
Page Views Oui Non Non Oui Oui
Page Video Posts Oui Non Non Oui Oui
Pages Non Oui Non Oui Non
Feeds Oui Oui Non Oui Oui

Exemple :

facebookPageInsights_read = glueContext.create_dynamic_frame. from options( connection_type="facebookpageinsights", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "entityName", "API_VERSION": "v21" }

Détails de champs Facebook Page Insights :

Entité Champ Type de données Opérateurs pris en charge
Page Content Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page CTA Clicks Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Engagement Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Impressions Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Posts Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Post Engagement Nom Chaîne N/A
Période Période EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Post Reactions Nom Chaîne N/A
Période Période EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page User Demographics Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Video Views Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Views Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Page Video Posts Nom Chaîne N/A
Période Période EQUAL_TO
Since DateTime EQUAL_TO
Valeurs Liste N/A
Titre Chaîne N/A
Description Chaîne N/A
description_from_api_doc Chaîne N/A
Id Chaîne N/A
Pages Nom Chaîne N/A
À propos Chaîne N/A
access_token Chaîne N/A
ad_campaign Chaîne N/A
Affiliation Chaîne N/A
app_id Chaîne N/A
artists_we_like Chaîne N/A
Attire Chaîne N/A
Awards Chaîne N/A
band_interests Chaîne N/A
band_members Chaîne N/A
best_page Chaîne N/A
Bio Chaîne N/A
Anniversaire Chaîne N/A
booking_agent Chaîne N/A
Built Chaîne N/A
can_checkin Chaîne N/A
can_post Chaîne N/A
Catégorie Chaîne N/A
category_list Liste N/A
Checkins Entier N/A
company_overview Chaîne N/A
connected_instagram_account Chaîne N/A
contact_address Chaîne N/A
country_page_likes Entier N/A
Couverture Struct N/A
culinary_team Chaîne N/A
current_location Chaîne N/A
delivery_and_pickup_option_info Liste N/A
Description Chaîne N/A
description_html Chaîne N/A
differently_open_offerings Liste N/A
directed_by Chaîne N/A
display_subtext Chaîne N/A
displayed_message_response_time Chaîne N/A
Emails Chaîne N/A
Engagement Chaîne N/A
fan_count Entier N/A
featured_video Chaîne N/A
Fonctionnalités Chaîne N/A
followers_count Entier N/A
food_styles Liste N/A
Founded Chaîne N/A
general_info Chaîne N/A
general_manager Chaîne N/A
Genre Chaîne N/A
global_brand_page_name Chaîne N/A
global_brand_root_id Chaîne N/A
has_added_app Booléen N/A
has_transitioned_to_new_page_experience Booléen N/A
has_whatsapp_business_number Booléen N/A
has_whatsapp_number Booléen N/A
Hometown Chaîne N/A
Heures Struct N/A
Impressum Chaîne N/A
Influences Chaîne N/A
instagram_business_account Chaîne N/A
is_always_open Booléen N/A
is_chain Booléen N/A
is_community_page Booléen N/A
is_eligible_for_branded_content Booléen N/A
is_messenger_bot_get_started_enabled Booléen N/A
is_messenger_platform_bot Booléen N/A
is_owned Booléen N/A
is_permanently_closed Booléen N/A
is_published Booléen N/A
Nom Chaîne N/A
Tâches Liste N/A
is_unclaimed Booléen N/A
is_webhooks_subscribed Booléen N/A
leadgen_tos_acceptance_time DateTime N/A
leadgen_tos_accepted Booléen N/A
leadgen_tos_accepting_user Chaîne N/A
leadgen_tos_accepting_user Struct N/A
Lien Lien N/A
Emplacement Struct N/A
Members Chaîne N/A
merchant_review_status Chaîne N/A
messenger_ads_default_icebreakers Liste N/A
messenger_ads_default_page_welcome_message Struct N/A
messenger_ads_default_quick_replies Liste N/A
messenger_ads_quick_replies_type Chaîne N/A
Mission Chaîne N/A
Mpg Chaîne N/A
name_with_location_descriptor Chaîne N/A
Réseau Chaîne N/A
new_like_count Entier N/A
offer_eligible Booléen N/A
overall_star_rating Float N/A
page_token Chaîne N/A
parent_page Chaîne N/A
Parking Chaîne N/A
payment_options Struct N/A
personal_info Chaîne N/A
personal_interests Chaîne N/A
pharma_safety_info Chaîne N/A
Téléphone Chaîne N/A
pickup_options Liste N/A
place_type Chaîne N/A
plot_outline Chaîne N/A
press_contact Chaîne N/A
price_range Chaîne N/A
privacy_info_url Chaîne N/A
produced_by Chaîne N/A
Produits Chaîne N/A
promotion_eligible Booléen N/A
promotion_ineligible_reason Chaîne N/A
public_transit Chaîne N/A
rating_count Entier N/A
record_label Chaîne N/A
release_date Chaîne N/A
restaurant_services Struct N/A
restaurant_specialties Struct N/A
Planificateur Chaîne N/A
screenplay_by Chaîne N/A
Saison Chaîne N/A
single_line_address Chaîne N/A
Starring Chaîne N/A
start_info Struct N/A
store_code Chaîne N/A
store_location_descriptor Chaîne N/A
store_number Entier N/A
Studio Chaîne N/A
supports_donate_button_in_live_video Booléen N/A
talking_about_count Entier N/A
temporary_status Chaîne N/A
unread_message_count Entier N/A
unread_notif_count Entier N/A
unseen_message_count Entier N/A
Nom d’utilisateur Chaîne N/A
verification_status Chaîne N/A
voip_info Struct N/A
Site Web Chaîne N/A
were_here_count Entier N/A
whatsapp_number Chaîne N/A
written_by Chaîne N/A
Feeds Id Chaîne N/A
Actions Liste N/A
admin_creator Objet N/A
Application Objet N/A
Pièces jointes Objets N/A
backdated_time DateTime N/A
call_to_action Objet N/A
can_reply_privately Booléen N/A
child_attachments Liste N/A
Coordonnées Struct N/A
created_time DateTime N/A
Event Struct N/A
expanded_height Entier N/A
expanded_width Entier N/A
feed_targeting Objet N/A
De Objet N/A
full_picture Chaîne N/A
Hauteur Entier N/A
Icône Chaîne N/A
instagram_eligibility Chaîne N/A
is_eligible_for_promotion Booléen N/A
is_expired Booléen N/A
is_hidden Booléen N/A
is_inline_created Booléen N/A
is_instagram_eligible Booléen N/A
is_popular Booléen N/A
is_published Booléen N/A
is_spherical Booléen N/A
Message Chaîne N/A
message_tags Liste N/A
multi_share_end_card Booléen N/A
multi_share_optimized Booléen N/A
parent_id Chaîne N/A
permalink_url Chaîne N/A
Lieu Chaîne N/A
Confidentialité Objet N/A
promotable_id Chaîne N/A
promotion_status Chaîne N/A
Propriétés Liste N/A
scheduled_publish_time Float N/A
Shares Objet N/A
status_type Chaîne N/A
Story Chaîne N/A
story_tags Liste N/A
Subscribed Booléen N/A
Cible Struct N/A
Ciblage Objet N/A
Pour Objet N/A
timeline_visibility Chaîne N/A
updated_time DateTime N/A
Via Struct N/A
video_buying_eligibility Liste N/A
Largeur Entier N/A
Since DateTime EQUAL_TO

Requêtes de partitionnement

Partitionnement basé sur des filtres :

Vous pouvez indiquer les options Spark supplémentaires PARTITION_FIELD, LOWER_BOUND, UPPER_BOUND et NUM_PARTITIONS si vous souhaitez utiliser la simultanéité dans Spark. Avec ces paramètres, la requête d’origine serait divisée en NUM_PARTITIONS nombres de sous-requêtes pouvant être exécutées simultanément par les tâches Spark.

  • PARTITION_FIELD : le nom du champ à utiliser pour partitionner la requête.

  • LOWER_BOUND : une valeur limite inférieure inclusive du champ de partition choisi.

    Pour le champ Datetime, nous acceptons le format d’horodatage Spark utilisé dans les requêtes SQL Spark.

    Exemples de valeurs valides :

    "2024-09-30T01:01:01.000Z"
  • UPPER_BOUND : une valeur limite supérieure exclusive du champ de partition choisi.

  • NUM_PARTITIONS : le nombre de partitions.

Exemple :

facebookPageInsights_read = glueContext.create_dynamic_frame.from_options( connection_type="facebookpageinsights", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "entityName", "API_VERSION": "v21", "PARTITION_FIELD": "created_Time" "LOWER_BOUND": "2024-10-27T07:00:00+0000" "UPPER_BOUND": "2024-10-27T07:00:00+0000" "NUM_PARTITIONS": "10" }