How to exclude output values which have a header and no value after it

Hi all,

I am currently building a scenario with Google Ads Custom Reports to fetch the Change History of Google Ads Accounts and their corresponding campaigns.

1 issue I am having with this (as I feed this data into GPT-4 to create a report) is that the data I put into GPT-4 is exceeding the request limit. This issue lies because there are a bunch of values in a Text Aggregator module that I am using to aggregate the Google Ads data where it is responding back with Headers that hold no values.

Here is an example:

Array Aggregator Example response:

User Email: Test@gmail.com

Ad Group Name: Awesomeadgroup

Ad Group Criterion Status:

Ad Group Criterion Keyword Match Type:

Ad Group Criterion Keyword Text:

Client TypeChange Resource Type:

Change Event, Changed Fields:

Change Event, Resource Change Operation:

Currency Code:

Account ID:

Within this response you can see that not all of the headers have a corresponding value (e.g. User Email: CORRESPONDING_VALUE e.g. test@gmail.com)

With multiple of these headers and no values, they are coming to exceed the GPT token limit because there are too many requests in a short period of time.

I am wondering if anyone knows how I can exclude headers that do not have any values next to them.

Everytime I run the scenario as well the data Is different with different headers. I have put in dynamic values of all the possible headers that come through the custom report change history which is where I am getting headers with no values because not always is a dynamic value going to have an actual value because the data being parsed through each time is different

This is just a short snippet of what is in the Text aggregator module

I need to write in the headers (or have them included somewhere) so that ChatGPT can interpret the data to give an accurate report

Would love to get some help on this, I have been struggling to find a solution for a while now

Thanks

Welcome to the Make community!

To allow us to assist you with your scenario, please provide the following:

1. —> Relevant Screenshots <—

Please share screenshots of your scenario, any error messages, relevant module fields, output bundles, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!