blob: d950eff6ce96ddfbd7a30cccb47131c6ff7bcc2c [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="dfareporting_v3_4.html">Campaign Manager 360 API</a> . <a href="dfareporting_v3_4.customEvents.html">customEvents</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#batchinsert">batchinsert(profileId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Inserts custom events.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="batchinsert">batchinsert(profileId, body=None, x__xgafv=None)</code>
<pre>Inserts custom events.
Args:
profileId: string, User profile ID associated with this request. (required)
body: object, The request body.
The object takes the form of:
{ # Insert Custom Events Request.
&quot;customEvents&quot;: [ # The set of custom events to insert.
{ # Experimental feature (no support provided) A custom event represents a third party impression, a third party click, an annotation on a first party impression, or an annotation on a first party click.
&quot;annotateClickEvent&quot;: { # Annotate a click event. # Annotate a click event. This field is mutually exclusive with insertEvent and annotateImpressionEvent. This or insertEvent and annotateImpressionEvent is a required field.
&quot;gclid&quot;: &quot;A String&quot;, # The Google click ID. Use this field to annotate the click associated with the gclid.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventClickAnnotation&quot;.
},
&quot;annotateImpressionEvent&quot;: { # Annotate an impression. # Annotate an impression. This field is mutually exclusive with insertEvent and annotateClickEvent. This or insertEvent and annotateClickEvent is a required field.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventImpressionAnnotation&quot;.
&quot;pathImpressionId&quot;: &quot;A String&quot;, # The path impression ID. Use this field to annotate the impression associated with the pathImpressionId.
},
&quot;customVariables&quot;: [ # Custom variables associated with the event.
{ # Custom variable.
&quot;index&quot;: &quot;A String&quot;, # The index of the custom variable.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customVariable&quot;.
&quot;value&quot;: &quot;A String&quot;, # The value of the custom variable. The length of string must not exceed 50 characters.
},
],
&quot;eventType&quot;: &quot;A String&quot;, # The type of event. If INSERT, the fields in insertEvent need to be populated. If ANNOTATE, the fields in either annotateClickEvent or annotateImpressionEvent need to be populated.
&quot;floodlightConfigurationId&quot;: &quot;A String&quot;, # Floodlight configuration ID of the advertiser the event is linked to. This is a required field.
&quot;insertEvent&quot;: { # Custom event to be inserted. # Insert custom event. This field is mutually exclusive with annotateClickEvent and annotateImpressionEvent. This or annotateClickEvent and annotateImpressionEvent is a required field.
&quot;cmDimensions&quot;: { # Campaign Manager IDs related to the custom event. # Campaign Manager dimensions associated with the event.
&quot;adId&quot;: &quot;A String&quot;, # Ad ID for Campaign Manager.
&quot;campaignId&quot;: &quot;A String&quot;, # Campaign ID for Campaign Manager.
&quot;creativeId&quot;: &quot;A String&quot;, # Creative ID for Campaign Manager.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#campaignManagerIds&quot;.
&quot;placementId&quot;: &quot;A String&quot;, # Placement ID for Campaign Manager.
&quot;siteId&quot;: &quot;A String&quot;, # Site ID for Campaign Manager.
},
&quot;dv3Dimensions&quot;: { # DV360 IDs related to the custom event. # DV360 dimensions associated with the event.
&quot;dvCampaignId&quot;: &quot;A String&quot;, # Campaign ID for DV360.
&quot;dvCreativeId&quot;: &quot;A String&quot;, # Creative ID for DV360.
&quot;dvInsertionOrderId&quot;: &quot;A String&quot;, # Insertion Order ID for DV360.
&quot;dvLineItemId&quot;: &quot;A String&quot;, # Line Item ID for DV360.
&quot;dvSiteId&quot;: &quot;A String&quot;, # Site ID for DV360.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#dV3Ids&quot;.
},
&quot;insertEventType&quot;: &quot;A String&quot;, # The type of event to insert.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventInsert&quot;.
&quot;matchId&quot;: &quot;A String&quot;, # The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight. This field is mutually exclusive with mobileDeviceId, and at least one of the two fields is required.
&quot;mobileDeviceId&quot;: &quot;A String&quot;, # The mobile device ID. This field is mutually exclusive with matchId, and at least one of the two fields is required.
},
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEvent&quot;.
&quot;ordinal&quot;: &quot;A String&quot;, # The ordinal of this custom event. This is a required field.
&quot;timestampMicros&quot;: &quot;A String&quot;, # The timestamp of this custom event, in Unix epoch micros. This is a required field.
},
],
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventsBatchInsertRequest&quot;.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Insert Custom Events Response.
&quot;hasFailures&quot;: True or False, # Indicates that some or all custom events failed to insert.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventsBatchInsertResponse&quot;.
&quot;status&quot;: [ # The insert status of each custom event. Statuses are returned in the same order that conversions are inserted.
{ # The original custom event that was inserted and whether there were any errors.
&quot;customEvent&quot;: { # Experimental feature (no support provided) A custom event represents a third party impression, a third party click, an annotation on a first party impression, or an annotation on a first party click. # The original custom event that was inserted.
&quot;annotateClickEvent&quot;: { # Annotate a click event. # Annotate a click event. This field is mutually exclusive with insertEvent and annotateImpressionEvent. This or insertEvent and annotateImpressionEvent is a required field.
&quot;gclid&quot;: &quot;A String&quot;, # The Google click ID. Use this field to annotate the click associated with the gclid.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventClickAnnotation&quot;.
},
&quot;annotateImpressionEvent&quot;: { # Annotate an impression. # Annotate an impression. This field is mutually exclusive with insertEvent and annotateClickEvent. This or insertEvent and annotateClickEvent is a required field.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventImpressionAnnotation&quot;.
&quot;pathImpressionId&quot;: &quot;A String&quot;, # The path impression ID. Use this field to annotate the impression associated with the pathImpressionId.
},
&quot;customVariables&quot;: [ # Custom variables associated with the event.
{ # Custom variable.
&quot;index&quot;: &quot;A String&quot;, # The index of the custom variable.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customVariable&quot;.
&quot;value&quot;: &quot;A String&quot;, # The value of the custom variable. The length of string must not exceed 50 characters.
},
],
&quot;eventType&quot;: &quot;A String&quot;, # The type of event. If INSERT, the fields in insertEvent need to be populated. If ANNOTATE, the fields in either annotateClickEvent or annotateImpressionEvent need to be populated.
&quot;floodlightConfigurationId&quot;: &quot;A String&quot;, # Floodlight configuration ID of the advertiser the event is linked to. This is a required field.
&quot;insertEvent&quot;: { # Custom event to be inserted. # Insert custom event. This field is mutually exclusive with annotateClickEvent and annotateImpressionEvent. This or annotateClickEvent and annotateImpressionEvent is a required field.
&quot;cmDimensions&quot;: { # Campaign Manager IDs related to the custom event. # Campaign Manager dimensions associated with the event.
&quot;adId&quot;: &quot;A String&quot;, # Ad ID for Campaign Manager.
&quot;campaignId&quot;: &quot;A String&quot;, # Campaign ID for Campaign Manager.
&quot;creativeId&quot;: &quot;A String&quot;, # Creative ID for Campaign Manager.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#campaignManagerIds&quot;.
&quot;placementId&quot;: &quot;A String&quot;, # Placement ID for Campaign Manager.
&quot;siteId&quot;: &quot;A String&quot;, # Site ID for Campaign Manager.
},
&quot;dv3Dimensions&quot;: { # DV360 IDs related to the custom event. # DV360 dimensions associated with the event.
&quot;dvCampaignId&quot;: &quot;A String&quot;, # Campaign ID for DV360.
&quot;dvCreativeId&quot;: &quot;A String&quot;, # Creative ID for DV360.
&quot;dvInsertionOrderId&quot;: &quot;A String&quot;, # Insertion Order ID for DV360.
&quot;dvLineItemId&quot;: &quot;A String&quot;, # Line Item ID for DV360.
&quot;dvSiteId&quot;: &quot;A String&quot;, # Site ID for DV360.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#dV3Ids&quot;.
},
&quot;insertEventType&quot;: &quot;A String&quot;, # The type of event to insert.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventInsert&quot;.
&quot;matchId&quot;: &quot;A String&quot;, # The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight. This field is mutually exclusive with mobileDeviceId, and at least one of the two fields is required.
&quot;mobileDeviceId&quot;: &quot;A String&quot;, # The mobile device ID. This field is mutually exclusive with matchId, and at least one of the two fields is required.
},
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEvent&quot;.
&quot;ordinal&quot;: &quot;A String&quot;, # The ordinal of this custom event. This is a required field.
&quot;timestampMicros&quot;: &quot;A String&quot;, # The timestamp of this custom event, in Unix epoch micros. This is a required field.
},
&quot;errors&quot;: [ # A list of errors related to this custom event.
{ # The error code and description for a custom event that failed to insert.
&quot;code&quot;: &quot;A String&quot;, # The error code.
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventError&quot;.
&quot;message&quot;: &quot;A String&quot;, # A description of the error.
},
],
&quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#customEventStatus&quot;.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
</body></html>