get
Returns the parameters of audience targets.
You can get bids and priorities regardless of whether a manual or automatic strategy is selected in the campaign.
Alert
All returned monetary values are integers — the result of multiplying the bid by 1,000,000.
Learn more
Restrictions
The method returns a maximum of 10,000 objects.
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"SelectionCriteria": { /* AudienceTargetSelectionCriteria */
"Ids": [(long), ... ],
"AdGroupIds": [(long), ... ],
"CampaignIds": [(long), ... ],
"RetargetingListIds": [(long), ... ],
"InterestIds": [(long), ... ],
"States": [( "ON" | "SUSPENDED" ), ... ]
}, /* required */
"FieldNames": [( "Id" | "AdGroupId" | "CampaignId" | "RetargetingListId" | "InterestId" | "ContextBid" | "StrategyPriority" | "State" ), ... ], /* required */
"Page": { /* LimitOffset */
"Limit": (long),
"Offset": (long)
}
}
}
Parameter |
Type |
Description |
Mandatory |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
AudienceTargetSelectionCriteria |
Criteria for selecting audience targets. |
Yes |
|
array of AudienceTargetFieldEnum |
The names of parameters to get. |
Yes |
|
LimitOffset |
Structure that defines the page for paginated selection of data. |
No |
AudienceTargetSelectionCriteria structure |
|||
|
array of long |
Selects audience targets with the specified IDs. From 1 to 10,000 items in the array. |
At least one of the parameters |
|
array of long |
Selects audience targets in the specified ad groups. From 1 to 1000 items in the array. |
|
|
array of long |
Selects audience targets in the specified campaigns. From 1 to 100 items in the array. |
|
|
array of long |
Selects audience targets with the specified retargeting lists. From 1 to 1000 items in the array. |
|
|
array of long |
Selects audience targets with the specified interests. From 1 to 1000 items in the array. |
|
|
array of AudienceTargetStateEnum |
Selects audience targets with the specified states. See State of an audience target. |
No |
Response
Response structure in JSON format:
{
"result": { /* result */
"AudienceTargets": [{ /* AudienceTargetGetItem */
"Id": (long),
"AdGroupId": (long),
"CampaignId": (long),
"RetargetingListId": (long), /* nillable */
"InterestId": (long), /* nillable */
"State": ( "ON" | "SUSPENDED" | "UNKNOWN" ),
"ContextBid": (long),
"StrategyPriority": ( "LOW" | "NORMAL" | "HIGH" )
}, ... ],
"LimitedBy": (long)
}
}
Parameter |
Type |
Description |
result structure (for JSON) / GetResponse (for SOAP) |
||
|
array of AudienceTargetGetItem |
Audience targets. |
|
long |
Sequential number of the last object returned. It is included if there was a limit on the number of objects in the response. See the section Paginated data selection. |
AudienceTargetGetItem structure |
||
|
long |
ID of the audience target. |
|
long |
ID of the ad group that the audience target belongs to. |
|
long |
ID of the campaign that the audience target belongs to. |
|
long, nillable |
ID of the retargeting list. |
|
long, nillable |
ID of an app category interest. |
|
long |
The bid in ad networks, multiplied by 1,000,000. |
|
PriorityEnum |
Priority: LOW, NORMAL or HIGH. |
|
StateEnum |
State of an audience target. See State of an audience target. |