shopify v0.4.0 Shopify.MarketingEvent.Engagement

Link to this section Summary

Link to this section Functions

Link to this function create_multiple(session, marketing_event_id, engagements)
create_multiple(
  %Shopify.Session{
    access_token: term(),
    api_key: term(),
    api_version: term(),
    client_id: term(),
    client_secret: term(),
    password: term(),
    req_opts: term(),
    shop_name: term(),
    type: term()
  },
  integer(),
  [
    %Shopify.MarketingEvent.Engagement{
      ad_spend: term(),
      clicks_count: term(),
      comments_count: term(),
      favorites_count: term(),
      impressions_count: term(),
      is_cumulative: term(),
      occurred_on: term(),
      shares_count: term(),
      views_count: term()
    }
  ]
) :: {:ok, Shopify.Response.t()} | {:error, Shopify.Response.t()}

Creates multiple engagements.

Returns {:ok, %Shopify.Response{}} or {:error, %Shopify.Response{}}

Parameters

  • session: A %Shopify.Session{} struct.
  • marketing_event_id: The id of the marketing event.
  • engagements: A Shopify.MarketingEvent.Engagement{} struct.

Examples

iex> Shopify.session |> Shopify.MarketingEvent.Engagement.create_multiple(1, [%Shopify.MarketingEvent.Engagement{occurred_on: "2018-12-01"}])
{:ok, %Shopify.Response{}}