When using GetLowestOfferListingsForASIN it returns a list of available listings including my own listing on Amazon.
Is it possible to exclude my own listing from the result of the GetLowestOfferListingsForASIN?
For GetLowestOfferListingsForASIN you can set ExcludeMe. By default it is false. Here is the behavior and a link to the documentation:
True – Your own offer listings are excluded from the offer
listings that are returned.
False – Your own offer listings are included in the offer
listings that are returned.
MWS Product API Doc
Related
I need to delete some attribute values from Akeneo using API.
In the documentation I can't find any example on how to delete attribute and entities possible values.
This is the link of the documentation that I'm looking:
https://api.akeneo.com/api-reference.html#Referenceentityrecord
How can I deal with the DELETE of these values ?
Thanks to support
There is no API endpoint to remove an attribute or a reference-entity record (and more generally, if there is nothing in the doc it means it doesn't exist)
Is it possible to fetch a list of countries according to ISO 3166-1 ?
I have found this package (Countries), however I am not sure whether it is reliable source or not. How do you handle it ?
Also, there is a list of available countries in PDF, see here (unctad)
I am curious whether there is a free API for this purpose, or I need to manually create a JSON for my react app.
Here is one that you can use.
end point:
data get https://datahub.io/core/country-list
I made a get req to /v1.0/users to fetch users but on the response I got resources too.
{"id"=>"e7cae970-f906-49f9-b080-8ec0b487c999",
"businessPhones"=>[],
"displayName"=>"meeting room 1",
"givenName"=>nil,
"jobTitle"=>nil,
"mail"=>"meetingroom1#test.onmicrosoft.com",
"mobilePhone"=>nil,
"officeLocation"=>"location",
"preferredLanguage"=>nil,
"surname"=>nil,
"userPrincipalName"=>"meetingroom1#test.onmicrosoft.com"},
How can I only list users and not resources?
You can do a couple of things here, but it depends on how resources are defined in your directory. Often times, directory resources (conference rooms, etc) are missing certain properties that are set for actual users, like givenName and jobTitle. You can prune resources missing these properties client-side by iterating through and checking what values are present.
For other Graph resources, you can use OData query options to filter down to just the subset of resources you want. However, support for filtering on properties of users is limited to a few operators like startsWith.
im trying to obtain some demographic data from the google analytics api, my intention is to integrate this on a cms to generate reports, etc... is this possible?
if it is, is there someone who knows a tutorial or something? i have used the examples provided and i get some sessions that have been in the last 7 day period. But nothing besides that. If that is not possible, what kind of things i can obtain with this api?
here is what i have tried:
function getResults(&$analytics, $profileId) {
return $analytics->data_ga->get(
'ga:' . $profileId,
'7daysAgo',
'today',
'ga:sessions');
}
thanks in advance.
You can obtain everything that's listed in the Dimensions and Metrics Reference. This includes ga:userAgeBracket and ga:userGender for demographic information.
To include additional metrics (numerical data) you put it as a parameter where you now have ga:sessions (separate multiple metrics with a comma). You need at least one metric for a query to work.
To add dimensions (i.e. categorical data) you need to pass an options array to your query that has a key/value pair for dimensions. This may also include additional options like filters or sort options, see the example here..
$optParams = array(
'dimensions' => 'ga:userAgeBracket,ga:userGender'
);
return $analytics->data_ga->get(
'ga:' . $profileId,
'7daysAgo',
'today',
'ga:sessions',
$optParams
);
This for version 3 of the API. If you are just getting started an have no legacy code to maintain you might as well start with there current version (v4).
To be able to get age and gender informations from analytics, you should Enable Demographics and Interests reports on your GA account.
doc : https://support.google.com/analytics/answer/2819948
I'm using the ListInventorySupply action to get all my inventory
https://mws.amazonservices.co.uk/FulfillmentInventory/2010-10-01?AWSAccessKeyId ....
Now the response includes ALL my inventory for all European sites. How can I know which items are in .uk and which in .de etc?
I haven't worked with FBA, but it is my understanding that the FullfillmentInventory API call does not give you fulfillment center information and neither lets you specify a specific fulfillment center as query parameter.
There is another set of API calls from the Reports API that most probably do what you want. I suggest you look specifically at the _GET_AFN_INVENTORY_DATA_BY_COUNTRY_ report type.