• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dfareporting_v2_8.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v2_8.projects.html">projects</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#get">get(profileId, id)</a></code></p>
79<p class="firstline">Gets one project by ID.</p>
80<p class="toc_element">
81  <code><a href="#list">list(profileId, searchString=None, pageToken=None, sortField=None, advertiserIds=None, ids=None, maxResults=None, sortOrder=None)</a></code></p>
82<p class="firstline">Retrieves a list of projects, possibly filtered. This method supports paging.</p>
83<p class="toc_element">
84  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
88    <code class="details" id="get">get(profileId, id)</code>
89  <pre>Gets one project by ID.
90
91Args:
92  profileId: string, User profile ID associated with this request. (required)
93  id: string, Project ID. (required)
94
95Returns:
96  An object of the form:
97
98    { # Contains properties of a DoubleClick Planning project.
99    "startDate": "A String", # Start date of the project.
100    "targetCpmNanos": "A String", # CPM that the advertiser is targeting.
101    "endDate": "A String", # End date of the project.
102    "clientBillingCode": "A String", # Client billing code of this project.
103    "overview": "A String", # Overview of this project.
104    "targetCpaNanos": "A String", # CPA that the advertiser is targeting.
105    "advertiserId": "A String", # Advertiser ID of this project.
106    "targetImpressions": "A String", # Number of impressions that the advertiser is targeting.
107    "id": "A String", # ID of this project. This is a read-only, auto-generated field.
108    "accountId": "A String", # Account ID of this project.
109    "targetCpcNanos": "A String", # CPC that the advertiser is targeting.
110    "targetCpmActiveViewNanos": "A String", # vCPM from Active View that the advertiser is targeting.
111    "targetClicks": "A String", # Number of clicks that the advertiser is targeting.
112    "audienceGender": "A String", # Audience gender of this project.
113    "kind": "dfareporting#project", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#project".
114    "subaccountId": "A String", # Subaccount ID of this project.
115    "name": "A String", # Name of this project.
116    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this project.
117      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
118    },
119    "budget": "A String", # Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar.
120    "audienceAgeGroup": "A String", # Audience age group of this project.
121    "targetConversions": "A String", # Number of conversions that the advertiser is targeting.
122    "clientName": "A String", # Name of the project client.
123  }</pre>
124</div>
125
126<div class="method">
127    <code class="details" id="list">list(profileId, searchString=None, pageToken=None, sortField=None, advertiserIds=None, ids=None, maxResults=None, sortOrder=None)</code>
128  <pre>Retrieves a list of projects, possibly filtered. This method supports paging.
129
130Args:
131  profileId: string, User profile ID associated with this request. (required)
132  searchString: string, Allows searching for projects by name or ID. Wildcards (*) are allowed. For example, "project*2015" will return projects with names like "project June 2015", "project April 2015", or simply "project 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "project" will match projects with name "my project", "project 2015", or simply "project".
133  pageToken: string, Value of the nextPageToken from the previous result page.
134  sortField: string, Field by which to sort the list.
135    Allowed values
136      ID -
137      NAME -
138  advertiserIds: string, Select only projects with these advertiser IDs. (repeated)
139  ids: string, Select only projects with these IDs. (repeated)
140  maxResults: integer, Maximum number of results to return.
141  sortOrder: string, Order of sorted results.
142    Allowed values
143      ASCENDING -
144      DESCENDING -
145
146Returns:
147  An object of the form:
148
149    { # Project List Response
150    "nextPageToken": "A String", # Pagination token to be used for the next list operation.
151    "kind": "dfareporting#projectsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#projectsListResponse".
152    "projects": [ # Project collection.
153      { # Contains properties of a DoubleClick Planning project.
154        "startDate": "A String", # Start date of the project.
155        "targetCpmNanos": "A String", # CPM that the advertiser is targeting.
156        "endDate": "A String", # End date of the project.
157        "clientBillingCode": "A String", # Client billing code of this project.
158        "overview": "A String", # Overview of this project.
159        "targetCpaNanos": "A String", # CPA that the advertiser is targeting.
160        "advertiserId": "A String", # Advertiser ID of this project.
161        "targetImpressions": "A String", # Number of impressions that the advertiser is targeting.
162        "id": "A String", # ID of this project. This is a read-only, auto-generated field.
163        "accountId": "A String", # Account ID of this project.
164        "targetCpcNanos": "A String", # CPC that the advertiser is targeting.
165        "targetCpmActiveViewNanos": "A String", # vCPM from Active View that the advertiser is targeting.
166        "targetClicks": "A String", # Number of clicks that the advertiser is targeting.
167        "audienceGender": "A String", # Audience gender of this project.
168        "kind": "dfareporting#project", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#project".
169        "subaccountId": "A String", # Subaccount ID of this project.
170        "name": "A String", # Name of this project.
171        "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this project.
172          "time": "A String", # Timestamp of the last change in milliseconds since epoch.
173        },
174        "budget": "A String", # Budget of this project in the currency specified by the current account. The value stored in this field represents only the non-fractional amount. For example, for USD, the smallest value that can be represented by this field is 1 US dollar.
175        "audienceAgeGroup": "A String", # Audience age group of this project.
176        "targetConversions": "A String", # Number of conversions that the advertiser is targeting.
177        "clientName": "A String", # Name of the project client.
178      },
179    ],
180  }</pre>
181</div>
182
183<div class="method">
184    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
185  <pre>Retrieves the next page of results.
186
187Args:
188  previous_request: The request for the previous page. (required)
189  previous_response: The response from the request for the previous page. (required)
190
191Returns:
192  A request object that you can call 'execute()' on to request the next
193  page. Returns None if there are no more items in the collection.
194    </pre>
195</div>
196
197</body></html>