List Ad Groups

πŸ“˜

URL: POST/api/v1/adGroups/list

Request Parameters

ParameterParameter DescriptionTypeRequiredPossible Values
advertiserIdID of advertiserintegerYAdvertiser ID for which the ad group needs to be updated for delivery status
campaignIdID of the campaignintegerYUnique numeric identifier.
Filter[name]A valid ad group name with which the desired ad group can be searched in the absence of ad group IDstringNProvide an ad group name to search the relevant ad group by name instead of ad group ID
Filter[status]Filter based on the ad group statusstringNEnum values:
β€’ draft
β€’ live
β€’ scheduled
β€’ paused
β€’ completed
β€’ archived
Filter[lastModifiedDate]Provide a date to fetch only those ad groups which were modified on or after that datestringNDate format must follow ISO 8601 time zone format:
β€’ yyyy-MM-dd'T'HH:mm:ss.SSSXXX
Filter[adGroupId]ID of the ad groups you wish to list details for.

Note: if no adGroupId is specified, all ad groups in the campaign will be returned
integerNUnique numeric identifier. Maximum list size is 25 entries.
startIndexYou can use this parameter in combination with count, to fetch specific number of ad groups from a list.
This indicates the starting position of the list
integerNInteger value

Example: To return the first ten ad groups, set startIndex=0 and count=10
countDefines the total number of ad groups to be returned.

You can use this parameter in combination with startIndex, to fetch specific number of ad groups from a list.
integerNInteger value

Note: defaultCount=100, maxCount = 100, minCount = 1

Example: To return the first ten adGroups, set startIndex=0 and count=10

Sample Request

curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/adGroups/list' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <auth_token>'
--header 'WM_SEC.AUTH_SIGNATURE: **************' \ --header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779' \ --data ' { "advertiserId": 1, "campaignId": 1, "Filter[name]": ["string"], "Filter[status]": "string", "Filter[lastModifiedDate]": "string", "Filter[adGroupId]": [1, 2], "startIndex": 0, "count": 10 } ' 

Response

ElementDescriptionType
totalResultsTotal number of rows returned in the responseinteger
Attributes of the campaigns returned by the API. The following attributes are listed:
  • campaignId:ID of the campaign
    Data type: integer
  • adGroupId: ID of the ad group
    Data type: integer
  • adGroupExtId: ID of the ad group in the ad server
    Data type: integer
  • name:name of ad group
    Data type: string
  • status:Specific phase of ad group status
    Data type: string
    Values: DRAFT, LIVE, SCHEDULED, PAUSED, COMPLETED, ARCHIVED
  • startDate:Date when ad group is set to go live
    Data type: date
    Values: ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX
  • endDate:Date when ad group ends
    Data type: date
    Values: ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX
    Note: for ad groups that are set to run indefinitely, the endDate will return "9999-12-31T00:00:00-05:00"
  • budgetType:Type of budget
    Data type: string
    Values: DAILY, TOTAL
  • deliverySpeed:pacing of ad delivery
    Data type: string
    Values: FRONTLOADED, EVENLY
  • dailyBudget:Daily budget of ad group
    Data type: double
  • totalBudget:Total budget of ad group
    Data type: double
  • rateType:rate type refers to the pricing structure
    Data type: string
    Value: CPM
  • frequencyCapDay: The number of times the ad from specific ad group should be shown to the same user in a day
    Data type: integer
  • frequencyCapWeek: The number of times the ad from specific ad group should be shown to the same user in a week
    Data type: integer
  • frequencyCapMonth: The number of times the ad from specific ad group should be shown to the same user in a month
    Data type: integer
  • baseBid:Starting bid for the ad group
    Data type: double
  • maxBid:Max bid value for the ad group
    Data type: double
  • Targeting: Provides targeting details of the ad group.
    • behavioral:
      • audienceType: Data type: string
        Values: RETAIL, BRAND, PERSONA, CUSTOM


      • attribute: Data type: string
        Values:
        • For RETAIL: HISTORICAL, PREDICTIVE
        • For BRAND: HISTORICAL, PREDICTIVE, LAPSED_BUYERS
        • For PERSONA: LIFESTYLE, LIFESTAGE
      • id: Data type integer
      • name: Data type string
      • mappingType:
        Data type: string
        Values: PRODUCT_CATEGORY, PRODUCT_FAMILY, PRODUCT_TYPE
    • geoTargets: Contains following elements:
      • For ad groups using Country, State, City or DMA targets
        • id: Data type integer
        • name: Data type string
        • locationType: Data type string
          Values: COUNTRY, STATE, CITY, DMA
      • For ad groups using zip code targeting
        • zipCode: Data type string. We only support ZIP codes within the USA currently
          Note: In an ad group, geo targeting contains either zipCode OR id
    • creationDate: Data type: date
      Values: ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX
    • lastUpdatedDate: Data type: date
      Values: ISO 8601 timezone format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX

Sample Response

{ "totalResults": 2, "response": [ { "campaignId": 1, "adGroupId": 1, "adGroupExtId": 1, "name": "string", "status": "string", "startDate": "string", "endDate": "string", "budgetType": "string", "deliverySpeed": "string", "dailyBudget": 0, "totalBudget": 0, "rateType": "string", "frequencyCapDay": 0, "frequencyCapWeek": 0, "frequencyCapMonth": 0, "baseBid": 0, "maxBid": 0, "targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "id": 2, "name": "Alabama", "locationType": "STATE" }, { "id": 3, "name": "Alaska", "locationType": "STATE" }, { "id": 10, "name": "Abbeville", "locationType": "CITY" } ] } ] }, "creationDate": "string", "lastUpdatedDate": "string" }, { "campaignId": 1, "adGroupId": 2, "adGroupExtId": 2, "name": "string", "status": "string", "startDate": "string", "endDate": "string", "budgetType": "string", "deliverySpeed": "string", "dailyBudget": 0, "totalBudget": 0, "rateType": "string", "frequencyCapDay": 0, "frequencyCapWeek": 0, "frequencyCapMonth": 0, "baseBid": 0, "maxBid": 0, "targeting": { "and": [ { "behavioral": [ { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 1, "name": "tropicana", "mappingType": "PRODUCT_CATEGORY" }, { "audienceType": "CATEGORY", "attribute": "HISTORICAL", "id": 5, "name": "sprite", "mappingType": "PRODUCT_FAMILY" } ] }, { "geoTargets": [ { "zipCode": "35004" } ] } ] }, "creationDate": "string", "lastUpdatedDate": "string" } ]
}