Select a specific Device
In this guide we're going to see how you can select a specific device when creating a new analysis.
If you're not familiar with GraphQL, please have a look at its dedicated section in this documentation.
The AdSecure crawler is able to simulate in a different way a user that is going to interact with the web content you want to analyse. One of the key points of this feature is the selection of a specific device.
In this guide, we're going to configure our analysis in order to simulate an Google Chrome user on Android.
By default the AdSecure crawler is not trying to emulate any device or browser.
Prerequisites
Before starting this guide, please be sure that you're ready to use our service by following the steps illustrated in the Quickstart section.
Simple case
In order to select a device, you first need to know which one are available. The entire list of Device
can be retrieved by running the following query:
query {
devices(first: 50) {
nodes {
login
}
}
}
In our case, we want to simulate an Google Chrome user on Android, so we pick: google_pixel_2_chrome
.
The next steps are quite similar to the one that we've done previous in the in the First Analysis guide. From this previous example, we just need to fill the input.device
field:
Query
mutation {
createAnalysis(input: {
content: "https://examples.adsecure.com/simple",
device: "google_pixel_2_chrome"
}) {
id
device {
login
name
}
}
}
Response
{
"data": {
"createAnalysis": {
"id": "YW5hbHlzaXN8YThiYzk0M2ItNTY3ZS00NzA5LWIwOWItMTI1YmMzNGMxMjUwfDIwMTgtMDktMDI=",
"device": {
"login": "google_pixel_2_chrome",
"name": "Google Pixel 2 — Chrome"
}
}
}
}
The AdSecure crawler is going to simulate a Google Pixel 2 that's using Chrome.