TikTok Audience Report Service Error

  • Is this your first time deploying Airbyte?: No
  • OS Version / Instance: MacOs
  • Deployment: Docker
  • Airbyte Version:
  • Source name/version: source-tiktok-marketing (master)
  • Step: Locally running connector for the audience report stream
  • Description:

When I am configuring a local catalog for the ads_audience_reports_daily stream (see below) and running python main.py read --config secrets/config.json --catalog secrets/catalog.json I am getting the following service error:

{
    "code": 51011,
    "message": "Service error: *search_engine.SearchServiceSearchCreativeArgs read field 1 'req' error: required field order_field is not set",
    "request_id": "my_request_id",
    "data": {}
}

I have also recreated this error in Postman.

There is no order_field in any of the request_params in the streams.py file for tiktok-marketing and even when adding an arbitrary order_field in Postman the same service error comes up.

So I am wondering how Airbyte/any users have been running this stream?

catalog.json:


{
  "streams": [
    {
      "stream": {
        "name": "ads_audience_reports_daily",
        "json_schema": {
          "type": ["null", "object"],
          "additionalProperties": true,
          "properties": {
            "advertiser_id": {
              "type": ["null", "integer"]
            },
            "adgroup_id": {
              "type": ["null", "integer"]
            },
            "campaign_id": {
              "type": ["null", "integer"]
            },
            "ad_id": {
              "type": ["null", "integer"]
            },
            "stat_time_day": {
              "type": ["null", "string"],
              "format": "date-time"
            },
            "stat_time_hour": {
              "type": ["null", "string"],
              "format": "date-time"
            },
            "metrics": {
              "type": ["null", "object"],
              "properties": {
                "campaign_name": {
                  "type": ["null", "string"]
                },
                "campaign_id": {
                  "type": ["null", "integer"]
                },
                "adgroup_name": {
                  "type": ["null", "string"]
                },
                "placement": {
                  "type": ["null", "string"]
                },
                "adgroup_id": {
                  "type": ["null", "integer"]
                },
                "ad_name": {
                  "type": ["null", "string"]
                },
                "ad_text": {
                  "type": ["null", "string"]
                },
                "tt_app_id": {
                  "type": ["null", "string"]
                },
                "tt_app_name": {
                  "type": ["null", "string"]
                },
                "mobile_app_id": {
                  "type": ["null", "string"]
                },
                "promotion_type": {
                  "type": ["null", "string"]
                },
                "dpa_target_audience_type": {
                  "type": ["null", "string"]
                },
                "spend": {
                  "type": ["null", "string"]
                },
                "cpc": {
                  "type": ["null", "string"]
                },
                "cpm": {
                  "type": ["null", "string"]
                },
                "impressions": {
                  "type": ["null", "string"]
                },
                "clicks": {
                  "type": ["null", "string"]
                },
                "ctr": {
                  "type": ["null", "string"]
                },
                "reach": {
                  "type": ["null", "string"]
                },
                "cost_per_1000_reached": {
                  "type": ["null", "string"]
                },
                "conversion": {
                  "type": ["null", "string"]
                },
                "cost_per_conversion": {
                  "type": ["null", "string"]
                },
                "conversion_rate": {
                  "type": ["null", "string"]
                },
                "real_time_conversion": {
                  "type": ["null", "string"]
                },
                "real_time_cost_per_conversion": {
                  "type": ["null", "string"]
                },
                "real_time_conversion_rate": {
                  "type": ["null", "string"]
                },
                "result": {
                  "type": ["null", "string"]
                },
                "cost_per_result": {
                  "type": ["null", "string"]
                },
                "result_rate": {
                  "type": ["null", "string"]
                },
                "real_time_result": {
                  "type": ["null", "string"]
                },
                "real_time_cost_per_result": {
                  "type": ["null", "string"]
                },
                "real_time_result_rate": {
                  "type": ["null", "string"]
                }
              }
            },
            "dimensions": {
              "type": ["null", "object"],
              "properties": {
                "stat_time_day": {
                  "type": ["null", "string"],
                  "format": "date-time"
                },
                "stat_time_hour": {
                  "type": ["null", "string"],
                  "format": "date-time"
                },
                "country_code": {
                  "type": ["null", "string"]
                },
                "campaign_id": {
                  "type": ["null", "integer"]
                },
                "adgroup_id": {
                  "type": ["null", "integer"]
                },
                "ad_id": {
                  "type": ["null", "integer"]
                },
                "advertiser_id": {
                  "type": ["null", "integer"]
                },
                "gender": {
                  "type": ["null", "string"]
                },
                "age": {
                  "type": ["null", "string"]
                },
                "ac": {
                  "type": ["null", "string"]
                },
                "language": {
                  "type": ["null", "string"]
                },
                "platform": {
                  "type": ["null", "string"]
                },
                "interest_category": {
                  "type": ["null", "string"]
                },
                "placement": {
                  "type": ["null", "string"]
                }
              }
            }
          }
        },
        "supported_sync_modes": ["full_refresh", "incremental"],
        "source_defined_cursor": true,
        "default_cursor_field": ["stat_time_day"],
        "source_defined_primary_key": [["ad_id"]]
      },
      "sync_mode": "incremental",
      "destination_sync_mode": "append",
      "cursor_field": ["stat_time_day"],
      "primary_key": [["ad_id"]]
    }
  ]
}

Hello there! You are receiving this message because none of your fellow community members has stepped in to respond to your topic post. (If you are a community member and you are reading this response, feel free to jump in if you have the answer!) As a result, the Community Assistance Team has been made aware of this topic and will be investigating and responding as quickly as possible.
Some important considerations that will help your to get your issue solved faster:

  • It is best to use our topic creation template; if you haven’t yet, we recommend posting a followup with the requested information. With that information the team will be able to more quickly search for similar issues with connectors and the platform and troubleshoot more quickly your specific question or problem.
  • Make sure to upload the complete log file; a common investigation roadblock is that sometimes the error for the issue happens well before the problem is surfaced to the user, and so having the tail of the log is less useful than having the whole log to scan through.
  • Be as descriptive and specific as possible; when investigating it is extremely valuable to know what steps were taken to encounter the issue, what version of connector / platform / Java / Python / docker / k8s was used, etc. The more context supplied, the quicker the investigation can start on your topic and the faster we can drive towards an answer.
  • We in the Community Assistance Team are glad you’ve made yourself part of our community, and we’ll do our best to answer your questions and resolve the problems as quickly as possible. Expect to hear from a specific team member as soon as possible.

Thank you for your time and attention.
Best,
The Community Assistance Team

Hey @marcosmarxm !

Thanks, is there any idea of when someone will be available to look at this issue?

Hello Róisín Bolt, it’s been a while without an update from us. Are you still having problems or did you find a solution?

Hi @marcosmarxm I am still waiting for an update from your side