A dynamic segment is different from an imported segment. A dynamic segment is based on an imported segment but then filters it. So a dynamic segment is some subset of endpoints of its base segment depending on the criteria specified. Dynamic segments can also change if the base segment changes in values.
- [Instructor] In the previous video, we imported a CSV file from an S3 bucket to create a pinpoint segment. Aren't you impressed that you understand what I just said? That's so great. Now we're going to do something pretty similar. We're going to create a dynamic segment based off of an imported segment. However, our previously imported segment is not very interesting. It only has three lines and they're all the same platform and make and model of phone, so we're going to update that. I've provided a new example file under chapter two, video zero two zero five with just an extra line at the bottom. So this has a country of SWE for Sweden. It's an Android phone with an LG make. Now this country code is an ISO website country code format, so whenever you're using these various attributes, be sure to understand what type of format you have to add for it, and again, you can look up the standard attributes that are built into Pinpoint at the AWS documentation for importing segments. So now we're going to import this to an S3 bucket. So now I'm going to add a new folder for our new segment, so I'm going to click create folder, name it seg two, save that, and now I'll upload a file to that. So I'll select it, click upload, click add files, and select the seg dot csv file under zero two zero five, open that, and click next through to upload. Now back at Pinpoint, I'm going to create an imported segment out of this, so I'll click create segment, import segment, and I'll call this one four endpoints and I'll give it the location S3 slash slash our segments slash seg two, and use the same existing IAM role we did before, select CSV and create the segment. Now under segments, we should be able to refresh until it's created. Once it's created, we have our four endpoints, and sure enough, it's got four entries. So we're going to go back to segments and select create segment, and this time, we'll use build segment. And we'll name it iOS only. And then down here, we have to include endpoints from any of the following segments. We could do all of the following segments or so on. This is where you select your base segment that your dynamic segment is based off of. So we'll use four endpoints. Next, we'll add a filter and we'll select filter by endpoint and we're going to select the attribute of platform, and notice we have iOS and Android. For our other existing segment, we would only have the option for iOS because that's all that there was within that segment, so I'll select iOS. We can do or, or if we select all, it'll change to an and logic. We can add additional attributes or metrics or just leave it at this. Now we'll create this segment. We select I understand after reading the text. And under segments, we should have a third segment that's dynamic, it sure is, iOS only. Now if we send to this, we notice it's only platform iOS, so we could send to all of our iOS users a specific message. Through a channel, something like an email or a push notification, but it would only use the users in that base segment of four endpoints that are on the iOS platform.
- Analytics and user engagement
- AWS account and console
- Users, endpoints, and channels
- Imported and dynamic segments
- Creating a Pinpoint project
- Creating a campaign
- Launching a campaign
- Sending messages
- Funnel analytics
- Monitoring and metrics
- Security with IAM