shopify v0.2.0 Shopify.MarketingEvent.Engagement
Link to this section Summary
Functions
Creates multiple engagements
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(), client_id: term(), client_secret: term(), password: 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() } ] ) :: %Shopify.Response{code: term(), data: term()}
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{}}