Hướng dẫn custom audience từ a z pdf
You can write job results directly to your Instagram Custom Audience. Instagram is part of Facebook so these instructions include references to Facebook technical specifications. Show
A Custom Audience is an ad targeting option that lets you find your existing audiences among people who are on Instagram. You can use sources like customer lists, website or app traffic, or engagement on Facebook, to create Custom Audiences of people who already know your business. You can create:
Prerequisites
About Data Normalization for Instagram Custom AudiencesTreasure Data result output normalizes your values automatically to follow Facebook’s normalizing rules, see . All values, uploaded to Facebook for matching, must be normalized with the normalizing rules of Facebook. The values will just miss chances to match if they are not normalized. If you need to normalize the data manually, apply your own normalization before attempting to output results. The following conversion behavior is applied according to data type during result output for normalization.
Use the TD Console to Create Your ConnectionCreate a New ConnectionIn Treasure Data, you must create and configure the data connection prior to running your query. As part of the data connection, you provide authentication to access the integration. 1. Open TD Console.2. Navigate to Integrations Hub \> Catalog.3. Search for and select Custom Audiences.4. Select Create Authentication.5. Accept the connection or select Click here.6. Optionally, follow the prompts to log into a different Facebook account.7. Optionally, log into your Facebook account and grant access to Treasure Data.8. You will be redirected back to the Catalog. Repeat the first step (Create a new connection) and choose your new OAuth connection.9. Select Continue.10. Name the connection.11. Select Done.Define your QueryThe column name is case-insensitive, ie. you can use email or EMAIL. Here is an example Audiences list before the output of a query result: From Treasure Data, run the following query with Output results into a connection of Instagram Custom Audience (see details of column naming): SELECT email, fn, ln FROM ( VALUES ('[email protected]', 'John', 'Doe'), ) tbl (email, fn, ln)The above query will not match any real users, it’s for demo purposes only. Also, the query requires no source table (for the ease of testing out this feature), but you still must choose a database, so pick “sample_datasets” or any other arbitrary table. The query should complete in a few seconds. After that, check your Audience List: Column NamingThe output result needs to follow the Facebook User schema. The column name is case-insensitive, ie. you can use email or EMAIL. Supported column names are:
If no supported column is found from the query result, an error is thrown.
Integration Parameters for Instagram Custom AudiencesParameterValuesDescriptionAd Account IDrequired This is your Ad Account ID without act_ prefix API Versionoptional, default v2.11 Facebook/Instagram API Version, it’s best to keep the default value. Action Add Remove Replace
Name of Custom Audience to create/update, if none exists, one will be created.
Description of Custom Audience. Page IDOptional The PAGE ID used by the users being uploaded. Required when the schema is a Facebook UID and the IDs were collected by a Page webhook integration. Source of customer data User Partner Both Specify the source of the user information collected into this file. No need to normalize and hash records true false Indicates whether the data has already been normalized and hashed. If not, TD automatically normalizes and hashes the records. Initial intervals in milliseconds between retriesoptional, default 60000 Interval to retry if a recoverable error happens (in millisecond). Retry limitoptional, default 5 Number of retries before it gives up. Example QuerySELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; You can use an alias in your query to rename columns of your query result, for example: SELECT an_email_column AS EMAIL, another_phone_column AS PHONE FROM your_table; Optionally Schedule the Query Export JobsYou can use Scheduled Jobs with Result Export to periodically write the output result to a target destination that you specify. 1. Navigate to Data Workbench > Queries.2. Create a new query or select an existing query.3. Next to Schedule, select None.4. In the drop-down, select one of the following schedule options:Drop-down ValueDescriptionCustom cron... Review . @daily (midnight)Run once a day at midnight (00:00 am) in the specified time zone.@hourly (:00)Run every hour at 00 minutes.NoneNo schedule. Custom cron... DetailsCron Value Description
Run once an hour.
Run once a day at midnight.
Run once a month at midnight on the morning of the first day of the month. "" Create a job that has no scheduled run time.
The following named entries can be used:
A single space is required between each field. The values for each field can be composed of: Field ValueExampleExample Description A single value, within the limits displayed above for each field. A wildcard
SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 0 Configures the schedule to run at midnight (00:00) on the first 10 days of each month.A list of comma-separated values SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 1, indicating the list of accepted values for the field. SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 2 Configures the schedule to run at midnight (00:00) every 1st, 11th, and 21st day of each month.A periodicity indicator SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 3 to express how often based on the field’s valid range of values a schedule is allowed to run. SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 4 Configures the schedule to run on the 1st of every month, every 2 hours starting at 00:30. SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 5 configures the schedule to run at midnight (00:00) every 5 days starting on the 5th of each month.A comma-separated list of any of the above except the SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 7. SELECT typeof(online_followers_lifetime) FROM instagram_test_insight_1 WHERE online_followers_lifetime <> '0'; 8Configures the schedule to run at midnight (00:00) every 5th, 10th, 20th, and 25th day of each month. 5. (Optional) You can delay the start time of a query by enabling the Delay execution.Execute the QuerySave the query with a name and run, or just run the query. Upon successful completion of the query, the query result is automatically imported to the specified container destination. Scheduled jobs that continuously fail due to configuration errors may be disabled on the system side after several notifications. |