Campaign and campaign rules requests

Use the campaign and campaign rules requests to define some general settings for the campaign. Give the campaign a name, associate it with a client, set the campaign priority, delivery mode and targeting rules.

Audience targeting, browser/OS targeting, and IP targeting is not supported through this API. A possible workaround is to add these targeting rules through targeting templates and then import or link the targeting template to a campaign. For more information, see Targeting Template API.

Getting started

  • Base URL: https://api.videoplaza.com/api/1.0/campaign
  • Requests: GET, POST, PUT, and DELETE requests are used. You pass parameters by using common REST parameters like PATH, QUERY, and MATRIX, as well as HTTP HEADERS. The body of the requests should be provided in XML format and encoded using UTF-8.
  • Responses: All responses contain an HTTP status code in the header and the body is in XML format.
  • Related user documentation:
The campaign rules endpoints allow you to:

Campaign: Request body format

To create and update campaigns, you need to supply a body to the request with the following format:
Note: Only the name and advertiser parameters are required. All other parameters are optional.
<campaignBean>
    <advertiserId>string</advertiserId>    <!-- (Required) -->
    <agencyId>string</agencyId>
    <brandId>string</brandId>
    <budget>
        <value>number</value>
    </budget>
     <!-- <cpmHigh> (Setting this value is ignored)
        <value>number</value>
    </cpmHigh> -->
   <!-- <cpmLow> (Setting this value is ignored) 
        <value>number</value>
    </cpmLow> -->
    <customId>string</customId>
    <description>string</description>
    <enabled>boolean</enabled>    <!-- (Defaults to false) -->
    <!-- <end>2016-10-26T08:36:28</end> (Setting this value is ignored) -->
    <exclusive>boolean</exclusive>    <!-- (Defaults to false) -->
    <frontLoadFactor>0|10|20|30|40|50|60|70|80|90|100</frontLoadFactor>    <!-- (Defaults to match the global frontload setting) -->
    <goalTotal>number</goalTotal>
    <goalType>IMPRESSION|MIXED|SHARE_OF_VOICE</goalType>
    <id>string</id>    <!-- (Set only when updating a campaign) -->
    <includeInForecast>boolean</includeInForecast>    <!-- (Defaults to true) -->
    <name>string</name>    <!-- (Required, use up to 250 characters) -->
    <priority>integer</priority>    <!-- (1-10; defaults to match the global priority setting) -->
    <!-- <start>2016-10-01T06:36:46+01:00</start> (Setting this value is ignored) -->
    <status>ACTIVE|RECENT|UPCOMING|ARCHIVED</status>    <!-- (The only valid value that can be set is ARCHIVED) -->
    <vastEnabled>boolean</vastEnabled>    <!-- (Defaults to false) -->
</campaignBean>

Create a campaign

Method POST
URL https://api.videoplaza.com/api/1.0/campaign
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params -
Query params -
Body Campaign: Request body format
Success response

HTTP status: 200 OK

Header: -

Body: campaign ID

Example

Request header

POST /api/1.0/campaign HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <campaignBean>
        <advertiserId>f16dd041-a659-4f7f-bf53-b7f1fcd84bee</advertiserId>       
        <description>API test campaign.</description>
        <enabled>true</enabled>
        <exclusive>false</exclusive>
        <frontLoadFactor>20</frontLoadFactor>              
        <includeInForecast>false</includeInForecast>
        <name>API campaign</name>
        <priority>4</priority>        
        <vastEnabled>true</vastEnabled>
    </campaignBean>

Success response

HTTP status:
  200 (OK)

Body:
84a19c28-­ba66-­411b-­a5bf-­49ecfce1e607

Update a campaign

Method PUT
URL https://api.videoplaza.com/api/1.0/campaign/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body Campaign: Request body format
Success response

HTTP status: 204 No Content

Header: -

Body: -

Example

Request header

PUT /api/1.0/campaign/by_campaign_id;id=84a19c28-­ba66-­411b-­a5bf-­49ecfce1e607 HTTP/1.1
Host: api.videoplaza.com
Content-­type: application/xml
x-o-api-key="<your key>"

Request body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<campaignBean>
        <advertiserId>f16dd041-a659-4f7f-bf53-b7f1fcd84bee</advertiserId>
        <agencyId>3f01fedc-06fe-442e-a185-0a8e6433cd96</agencyId>
        <brandId>0d1d3dfb-359a-4ab9-bcf9-fb555b5accd9</brandId>
        <description>API test campaign.</description>
        <enabled>true</enabled>
        <exclusive>false</exclusive>
        <frontLoadFactor>40</frontLoadFactor>
        <id>84a19c28-­ba66-­411b-­a5bf-­49ecfce1e607</id>
        <includeInForecast>true</includeInForecast>
        <name>API Test Campaign</name>
        <priority>10</priority>        
        <vastEnabled>true</vastEnabled>
    </campaignBean>

Success response

HTTP status:
  204 (No Content)

Delete a campaign

Method DELETE
URL https://api.videoplaza.com/api/1.0/campaign/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body -
Success response

HTTP status: 204 No Content

Header: -

Body: -

Example

Request header

DELETE /api/1.0/campaign/by_campaign_id;id=84a19c28-­bb66-­411b-­a5bf-­49efgfce1e607 HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  204 (No Content)

List campaigns

Note: There is a newer version of this endpoint which supports various query parameters that allow you to retrieve more detailed information on a subset of campaigns that match your query, or you can retrieve a complete list of all campaigns associated with your account, where you can also expand goals and ads associated with the campaigns. For more information, see Query for multiple campaigns.
Method GET
URL https://api.videoplaza.com/api/1.0/campaign
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params -
Query params Optional; Filter campaigns based on their status and/or state :
  1. status:
    • active
    • recent
    • upcoming
  2. state:
    • archived
    • disabled
    • enabled
Body -
Success response

HTTP status: 200 OK

Header: -

Body: list of campaigns

Example

Request header

GET /api/1.0/campaign?status=upcoming&state=enabled HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  200 (OK)

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<collection>
    <campaignBean>
        <advertiserId>20020002-f299-489a-a9e1-362bfbe0c676</advertiserId>
        <enabled>true</enabled>
        <exclusive>false</exclusive>
        <frontLoadFactor>0</frontLoadFactor>
        <goalTotal>0.0</goalTotal>
        <id>c3abb649-e45f-4692-a467-083e9968af6b</id>
        <includeInForecast>true</includeInForecast>
        <name>Royco_2016_10</name>
        <priority>5</priority>
        <status>UPCOMING</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
    <campaignBean>
        <advertiserId>664e3f55-3b89-4e2d-8635-5421716a00f7</advertiserId>
        <enabled>true</enabled>
        <exclusive>false</exclusive>
        <goalTotal>0.0</goalTotal>
        <id>f007aced-330c-4961-9da2-31527458bee5</id>
        <includeInForecast>true</includeInForecast>
        <name>Coca cola</name>
        <status>UPCOMING</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
</collection>

List archived campaigns

Note: There is a newer version of this endpoint which supports various query parameters that allow you to retrieve more detailed information on archived campaigns, where you can also expand goals and ads associated with the campaigns. The new endpoint does not support filtering based on year and month the campaigns were running. For more information, see Query for multiple campaigns.
Method GET
URL https://api.videoplaza.com/api/1.0/campaign/archived
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params -
Query params Filter archived campaigns based on year and month the campaigns were running:
  1. year: 4 digit integer (for example, 2017)
  2. month: integer, 1-12
    • 1 (January)
    • 2 (February)
    • 3 (March), and so on.
Note: If no year or month is specified, you get a list of archived campaigns for current year and month.
Body -
Success response

HTTP status: 200 OK

Header: -

Body: list of campaigns

Example

Request header

GET /api/1.0/campaign/archived?year=2016&month=8 HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  200 (OK)

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<collection>
    <campaignBean>
        <advertiserId>f16dd041-a659-4f7f-bf53-b7f1fcd84bee</advertiserId>
        <cpmHigh>
            <value>4.9E-324</value>
        </cpmHigh>
        <cpmLow>
            <value>0.0</value>
        </cpmLow>
        <enabled>false</enabled>
        <end>2016-08-21T13:16:32+0200</end>
        <exclusive>false</exclusive>
        <goalTotal>250000.0</goalTotal>
        <goalType>IMPRESSION</goalType>
        <id>49428852-473d-4be8-a142-7abd85b7d9aa</id>
        <includeInForecast>true</includeInForecast>
        <name>IKEA_Sverige</name>
        <priority>5</priority>
        <start>2016-07-04T14:16:32+0200</start>
        <status>ARCHIVED</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
    <campaignBean>
        <advertiserId>20020002-f299-489a-a9e1-362bfbe0c676</advertiserId>
        <agencyId>c9c72b46-4464-4ca8-aad4-6080b66f3318</agencyId>
        <brandId>d01b019f-0115-4384-a218-6b80c1bb803a</brandId>
        <cpmHigh>
            <value>4.9E-324</value>
        </cpmHigh>
        <cpmLow>
            <value>0.0</value>
        </cpmLow>
        <enabled>false</enabled>
        <end>2016-08-25T14:16:00+0200</end>
        <exclusive>false</exclusive>
        <goalTotal>74000.0</goalTotal>
        <goalType>IMPRESSION</goalType>
        <id>ce0e6dc2-feed-4711-96d2-1cb4992fd0cf</id>
        <includeInForecast>true</includeInForecast>
        <name>Royco_201607</name>
        <priority>2</priority>
        <start>2016-07-04T14:16:21+0200</start>
        <status>ARCHIVED</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
    <campaignBean>
        <advertiserId>9692f005-7d78-4ec2-ba0c-0e6bff86c5ae</advertiserId>
        <cpmHigh>
            <value>4.9E-324</value>
        </cpmHigh>
        <cpmLow>
            <value>0.0</value>
        </cpmLow>
        <enabled>false</enabled>
        <end>2016-08-14T02:42:00+0200</end>
        <exclusive>false</exclusive>
        <goalTotal>52000.0</goalTotal>
        <goalType>IMPRESSION</goalType>
        <id>d1b89e0c-9528-4c1c-b233-ecaab0c99b82</id>
        <includeInForecast>true</includeInForecast>
        <name>Argos_storytelling_2016</name>
        <priority>3</priority>
        <start>2016-07-07T03:42:00+0200</start>
        <status>ARCHIVED</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
</collection>

Get campaign by campaign ID

Note: There is a newer version of this endpoint which allows you to expand goals and ads associated with the campaign. For more information, see Query for one campaign.
Method GET
URL https://api.videoplaza.com/api/1.0/campaign/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body -
Success response

HTTP status: 200 OK

Header: -

Body: campaign bean

Example

Request header

GET /api/1.0/campaign/by_campaign_id;id=f007aced-330c-4961-9da2-31527458bee5 HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  200 (OK)

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<collection>
    <campaignBean>
        <advertiserId>664e3f55-3b89-4e2d-8635-5421716a00f7</advertiserId>
        <enabled>true</enabled>
        <exclusive>false</exclusive>
        <goalTotal>0.0</goalTotal>
        <id>f007aced-330c-4961-9da2-31527458bee5</id>
        <includeInForecast>true</includeInForecast>
        <name>Coca cola</name>
        <status>UPCOMING</status>
        <vastEnabled>true</vastEnabled>
    </campaignBean>
</collection>

List notifications by campaign ID

Method GET
URL https://api.videoplaza.com/api/1.0/campaign/notification/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body -
Success response

HTTP status: 200 OK

Header: -

Body: map (key campaign ID, value list of notifications)

Example

Request header

GET /api/1.0/campaign/notification/by_campaign_id;id=b67fd507-8e80-41f6-bdc2-3af60f058b7e HTTP/1.1
Host: api.videoplaza.com
Content-type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  200 (OK)

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<map>
    <entry key="b67fd507-8e80-41f6-bdc2-3af60f058b7e">
        <notificationList>
            <notificationBeans>
                <concernedResource>
                    <id>59a0fc5f-d22b-40a2-ac72-264663c84c7e</id>
                    <type>GOAL</type>
                </concernedResource>
                <level>WARNING</level>
                <message>Running goal is missing active ads during some of its run time. (Royco_201607)</message>
                <relatedResources>
                    <id>b67fd507-8e80-41f6-bdc2-3af60f058b7e</id>
                    <type>CAMPAIGN</type>
                </relatedResources>
            </notificationBeans>
        </notificationList>
    </entry>
</map>

Campaign rules: Request body format

To update campaign rules, you need to supply a body to the request with the following format:

<rulesBean>
    <parentId>string</parentId>    <!-- Campaign ID -->
    <content>
        <resourceId>string</resourceId>    <!-- Category ID -->
        <!-- <resourceName>string</resourceName> (Category name; setting this value is ignored) -->
        <ruleType>ALL_OF|AT_LEAST_ONE_OF|NONE_OF</ruleType>
        <variableType>SITE</variableType>
    </content>
    <frequencyCappings>
        <impressions>integer</impressions>    <!-- Number of impressions to allow in this time period -->
        <timeUnit>FIVE_MINUTES|TEN_MINUTES|QUARTER_HOUR|HALF_HOUR|HOUR|DAY|WEEK|MONTH|CAMPAIGN_LIFETIME</timeUnit>
    </frequencyCappings>
    <locations>
        <allowed>boolean</allowed>
        <!-- <country>string</country> (Name of the country; setting this value is ignored) -->
        <id>string</id>
        <iso2>string</iso2>
        <locationType>COUNTRY</locationType>
    </locations>
    <locations>
        <allowed>boolean</allowed>
        <!-- <region>string</region> (Name of the region; setting this value is ignored) -->
        <id>string</id>
        <iso2>string</iso2>
        <locationType>REGION</locationType>
    </locations>
    <locations>
        <allowed>boolean</allowed>
        <!-- <city>string</city> (Name of the city; setting this value is ignored) -->
        <id>string</id>    <!-- Location id -->
        <iso2>string</iso2>
        <locationType>CITY</locationType>
    </locations>
    <timeRestrictions>    <!-- Time restrictions should be set based on the account's time zone, see below for more information -->
        <active>boolean</active>
        <days>MONDAY|TUESDAY|WEDNESDAY|THURSDAY|FRIDAY|SATURDAY|SUNDAY</days>        
        <fromHour>0-23</fromHour>
        <fromMinute>0-59</fromMinute>
        <toHour>0-23</toHour>
        <toMinute>0-59</toMinute>
    </timeRestrictions>
    <tags>
        <resourceId>string</resourceId>    <!-- Content Partner ID/Tag value -->
        <!-- <resourceName>string</resourceName> (Content Partner/Tag name; setting this value is ignored) -->
        <ruleType>ALL_OF|AT_LEAST_ONE_OF|NONE_OF</ruleType>
        <variableType>CONTENT_PARTNER|TAG</variableType>
    </tags>
    <accountCustomParameters>
        <ignoreParent>boolean</ignoreParent>
        <parameterName>acp.paramName</parameterName>  <!-- paramName needs to match the ad request parameter name defined for your Pulse account -->
        <rules>
            <ruleType>AT_LEAST_ONE_OF|NONE_OF</ruleType>
            <value>string</value>  <!-- Value for the corresponding acp parameter defined for your Pulse account, see below for more information -->
        </rules>
    </accountCustomParameters>
    <ignoreParentContentRules>boolean</ignoreParentContentRules>
    <ignoreParentFrequencyRules>boolean</ignoreParentFrequencyRules>
    <ignoreParentLocationRules>boolean</ignoreParentLocationRules>
    <ignoreParentTagRules>boolean</ignoreParentTagRules>
    <ignoreParentTimeRules>boolean</ignoreParentTimeRules>
</rulesBean>

If you set a specific time restriction combination to active, then the rest is considered inactive. You can have both active and inactive rules if you want to set a portion of the active period to be inactive. For example, active on Saturday between 08:00 a.m. and 11:00 a.m., but inactive for 15 minutes on Saturday, between 10:00 a.m. and 10:15 a.m

Time restriction set to, for example, <toHour>5</toHour> and <toMinute>59</toMinute> actually means it is set to 05:58:59 (hour 5, minute 58, second 59). To capture the last minute of the hour in this example, you need to set the time restriction as <toHour>6</toHour> and <toMinute>0</toMinute>.

To extend a rule to the next day, use <toHour>0</toHour> and <toMinute>0</toMinute>.

You can add a maximum of 20 values for one account custom paramater. The account custom parameter values cannot contain any spaces or any of the following characters: comma (,), semicolon (;), double quote/quotation mark ("), single quote/apostrophe ('), backslash (\), pipe (|), tilde (~), or ampersand (&).

The ignoreParentRules parameters can be set to:
  • true: If you want to partially or completely change the targeting for a campaign, you need to ignore the corresponding parent (global) rule that does not match the new targeting. A configured (not empty) parent rule has to be ignored when it partially or entirely conflicts with the desired targeting outcome.
  • false:
    • When the parent (global) rule is empty (not configured). If a global targeting rule is empty, Pulse treats it as a matching rule, because an empty rule matches all requests.
    • When the child (campaign) rule is exactly the same as the parent (global) rule or is a subset of the parent (campaign) rule.

For more information, see Apply and ignore targeting rules.

Update campaign rules

Audience targeting, browser/OS targeting, and IP targeting is not supported through this API. A possible workaround is to add these targeting rules through targeting templates and then import or link the targeting template to a campaign. For more information, see Targeting Template API.

Method PUT
URL https://api.videoplaza.com/api/1.0/campaign/rules/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body Campaign rules: Request body format
Success response

HTTP status: 204 No Content

Header: -

Body: -

Example

Request header

PUT /api/1.0/campaign/rules/by_campaign_id;id=6ceb63e1-cddf-4083-949f-3d4c5d46462a HTTP/1.1
Host: api.videoplaza.com
Content-­type: application/xml
x-o-api-key="<your key>"

Request body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rulesBean>
    <accountCustomParameters>
        <ignoreParent>true</ignoreParent>
        <parameterName>acp.genre</parameterName>
        <rules>
            <ruleType>AT_LEAST_ONE_OF</ruleType>
            <value>Comedy</value>
        </rules>
    </accountCustomParameters>
    <accountCustomParameters>
        <ignoreParent>true</ignoreParent>
        <parameterName>acp.network</parameterName>
        <rules>
            <ruleType>AT_LEAST_ONE_OF</ruleType>
            <value>Network1</value>
        </rules>
    </accountCustomParameters>
    <content>
        <resourceId>dc74b090-c275-4646-a37f-4d5cff09997a</resourceId>
        <resourceName>Entertainment</resourceName>
        <ruleType>ALL_OF</ruleType>
        <variableType>SITE</variableType>
    </content>
    <content>
        <resourceId>df5480fd-ca38-43c8-a44c-4240965e2023</resourceId>
        <resourceName>Sport</resourceName>
        <ruleType>NONE_OF</ruleType>
        <variableType>SITE</variableType>
    </content>
    <frequencyCappings>
        <impressions>3</impressions>
        <timeUnit>HOUR</timeUnit>
    </frequencyCappings>
    <frequencyCappings>
        <impressions>15</impressions>
        <timeUnit>DAY</timeUnit>
    </frequencyCappings>
    <ignoreParentContentRules>true</ignoreParentContentRules>
    <ignoreParentFrequencyRules>true</ignoreParentFrequencyRules>
    <ignoreParentLocationRules>true</ignoreParentLocationRules>
    <ignoreParentTagRules>true</ignoreParentTagRules>
    <ignoreParentTimeRules>true</ignoreParentTimeRules>
    <locations>
        <allowed>true</allowed>
        <country>sweden</country>
        <id>752</id>
        <iso2>se</iso2>
        <locationType>COUNTRY</locationType>
    </locations>
    <locations>
        <allowed>true</allowed>
        <country>sweden</country>
        <id>71</id>
        <locationType>REGION</locationType>
        <region>sweden (?)</region>
    </locations>
    <locations>
        <allowed>false</allowed>
        <country>norway</country>
        <id>578</id>
        <iso2>no</iso2>
        <locationType>COUNTRY</locationType>
    </locations>
    <parentId>6ceb63e1-cddf-4083-949f-3d4c5d46462a</parentId>
    <tags>
        <resourceId>entertainment</resourceId>
        <resourceName>entertainment</resourceName>
        <ruleType>ALL_OF</ruleType>
        <variableType>TAG</variableType>
    </tags>
    <tags>
        <resourceId>idol</resourceId>
        <resourceName>idol</resourceName>
        <ruleType>AT_LEAST_ONE_OF</ruleType>
        <variableType>TAG</variableType>
    </tags>
    <tags>
        <resourceId>reality_show</resourceId>
        <resourceName>reality_show</resourceName>
        <ruleType>AT_LEAST_ONE_OF</ruleType>
        <variableType>TAG</variableType>
    </tags>
    <tags>
        <resourceId>violence</resourceId>
        <resourceName>violence</resourceName>
        <ruleType>NONE_OF</ruleType>
        <variableType>TAG</variableType>
    </tags>
    <timeRestrictions>
        <active>true</active>
        <days>SUNDAY</days>
        <days>SATURDAY</days>
        <fromHour>0</fromHour>
        <fromMinute>0</fromMinute>
        <toHour>23</toHour>
        <toMinute>59</toMinute>
    </timeRestrictions>
</rulesBean>

Success response

HTTP status:
  204 (No Content)

Retrieve campaign rules

Method GET
URL https://api.videoplaza.com/api/1.0/campaign/rule/by_campaign_id
Header Authentication header (x-o-api-key)
Content type application/xml
Matrix params id: campaign ID
Query params -
Body -
Success response

HTTP status: 200 OK

Header: -

Body: rulesBean

Example

Request header

GET /api/1.0/campaign/rule/by_campaign_id;id=6ceb63e1-cddf-4083-949f-3d4c5d46462a HTTP/1.1
Host: api.videoplaza.com
Content-­type: application/xml
x-o-api-key="<your key>"

Request body: NA

Success response

HTTP status:
  200 (OK)

Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rulesBean>
    <accountCustomParameters>
        <ignoreParent>false</ignoreParent>
        <parameterName>acp.genre</parameterName>
        <rules>
            <ruleType>AT_LEAST_ONE_OF</ruleType>
            <value>Comedy</value>
        </rules>
    </accountCustomParameters>
    <accountCustomParameters>
        <ignoreParent>false</ignoreParent>
        <parameterName>acp.network</parameterName>
    </accountCustomParameters>
    <frequencyCappings>
        <impressions>2</impressions>
        <timeUnit>DAY</timeUnit>
    </frequencyCappings>
    <ignoreParentContentRules>false</ignoreParentContentRules>
    <ignoreParentFrequencyRules>false</ignoreParentFrequencyRules>
    <ignoreParentLocationRules>false</ignoreParentLocationRules>
    <ignoreParentTagRules>false</ignoreParentTagRules>
    <ignoreParentTimeRules>false</ignoreParentTimeRules>
    <locations>
        <allowed>true</allowed>
        <country>sweden</country>
        <id>752</id>
        <iso2>se</iso2>
        <locationType>COUNTRY</locationType>
    </locations>
    <locations>
        <allowed>true</allowed>
        <country>sweden</country>
        <id>71</id>
        <locationType>REGION</locationType>
        <region>sweden (?)</region>
    </locations>
    <parentId>6ceb63e1-cddf-4083-949f-3d4c5d46462a</parentId>
    <tags>
        <resourceId>violence</resourceId>
        <resourceName>violence</resourceName>
        <ruleType>NONE_OF</ruleType>
        <variableType>TAG</variableType>
    </tags>
    <timeRestrictions>
        <active>true</active>
        <days>SUNDAY</days>
        <days>SATURDAY</days>
        <fromHour>0</fromHour>
        <fromMinute>0</fromMinute>
        <toHour>23</toHour>
        <toMinute>59</toMinute>
    </timeRestrictions>
</rulesBean>